implement --hdrsrc substitution mechanism
commitd948070c8f5d77049c68b54c2086c45113e91942
authorrofl0r <retnyg@gmx.net>
Fri, 20 Dec 2013 19:59:30 +0000 (20 20:59 +0100)
committerrofl0r <retnyg@gmx.net>
Fri, 20 Dec 2013 19:59:36 +0000 (20 20:59 +0100)
treefb2379c9a8225d2ec4f88bcf806eca8015a6d302
parentd8e292da2e811ea267da6edc6b976a9430adceba
implement --hdrsrc substitution mechanism

this will cause rcb to scan the substituted header path when a
matching #include <*> directive is found.
this allows for example to install libulz into the system directories
/include/ulz, /lib, so regular library users can include <ulz/strlib.h>
instead of "../lib/include/strlib.h" and just link with -lulz.
those headers tho will contain rcb tags that point to a non-existing
source directory.
rcb can still be used in such a case by using
--hdrsrc=ulz:../lib/include
so <ulz/strlib.h> will be transformed into "../lib/include/strlib.h"
and the rcb tags scanned. inclusions with <> are otherwise ignored.
the separator is between the expression to match and the replacement
string is ":".
rcb.pl