From 15462b73c4bf5fe7d3083b8fa043da9a7de39c9e Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 10 Jun 2019 20:06:56 +0100 Subject: Generic xxd action --- gentoobrowse-api/service/Jamfile.jam | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gentoobrowse-api/service/Jamfile.jam b/gentoobrowse-api/service/Jamfile.jam index ed13895..164db97 100644 --- a/gentoobrowse-api/service/Jamfile.jam +++ b/gentoobrowse-api/service/Jamfile.jam @@ -4,16 +4,14 @@ import generators : register-standard ; type.register XSLT : xslt ; -generators.register-standard xslt.c : XSLT : C H ; +generators.register-standard xxd.i : XSLT : C H ; -actions xslt.c +actions xxd.i { - echo "extern unsigned char $(2:B)_xslt[];" > $(1[2]) - echo "extern unsigned int $(2:B)_xslt_len;" >> $(1[2]) - ( cd $(2:D) ; xxd -i $(2:B)$(2:S) ) > $(1[1]) + ( cd $(2:D) ; xxd -i $(2:B)$(2:S) ) | tee $(1[1]) | cproto -veo $(1[2]) } -IMPORT $(__name__) : xslt.c : : xslt.c ; +IMPORT $(__name__) : xxd.i : : xxd.i ; lib icetray : : : : /usr/include/icetray ; lib git2 ; -- cgit v1.2.3