commit d777cd5cd4a138c64d46c0517e3377790126c697
parent dc8ca11aa42569383cdc1fe370a4dc80b04a2c72
Author: kyle <kyle@0x30.net>
Date: Wed, 18 Jan 2017 20:14:36 -0700
jam: add old sed hacks for ccitrunrun
Diffstat:
1 file changed, 33 insertions(+), 2 deletions(-)
diff --git a/Jamrules.extra b/Jamrules.extra
@@ -51,5 +51,36 @@ actions TestCoverage
mv *.gcov gcov/
}
-Analysis analysis ;
-TestCoverage coverage ;
+#
+# Use C It Run on itself.
+#
+actions CCItRunRun
+{
+ set -e
+
+ #
+ # Namespace global instrumentation variables such that they don't
+ # collide with the actual instrumentation.
+ #
+ sed -i \
+ -e "s,struct citrun_node,struct ccitrunrun_node," \
+ -e "s,citrun_node_add,ccitrunrun_node_add," \
+ -e "s,citrun_major,ccitrunrun_major,g" \
+ -e "s,citrun_minor,ccitrunrun_minor,g" \
+ lib.h lib.c inst_action.cc inst_fe.cc gl_procfile.cc
+
+ #
+ # Change binary names so we can do a side by side installation.
+ #
+ sed -i \
+ -e "s,citrun_inst,ccitrunrun_inst," \
+ -e "s,citrun_term,ccitrunrun_term," \
+ -e "s,citrun_gl,ccitrunrun_gl," \
+ -e "s,libcitrun,libccitrunrun," \
+ Jamfile lib.c inst_main.cc
+ jam
+}
+
+Analysis analysis ;
+TestCoverage coverage ;
+CCItRunRun ccitrunrun ;