diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-06-10 20:06:56 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-06-10 20:06:56 +0100 |
commit | 15462b73c4bf5fe7d3083b8fa043da9a7de39c9e (patch) | |
tree | 8be6b6ca19957a17e581c66b283ed49e62b756f9 | |
parent | Minor XSL tweak to tidy output (diff) | |
download | gentoobrowse-api-15462b73c4bf5fe7d3083b8fa043da9a7de39c9e.tar.bz2 gentoobrowse-api-15462b73c4bf5fe7d3083b8fa043da9a7de39c9e.tar.xz gentoobrowse-api-15462b73c4bf5fe7d3083b8fa043da9a7de39c9e.zip |
Generic xxd action
-rw-r--r-- | gentoobrowse-api/service/Jamfile.jam | 10 |
1 files 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 : : : : <include>/usr/include/icetray ; lib git2 ; |