From: Ian Jackson Date: Mon, 17 May 2021 16:13:35 +0000 (+0100) Subject: big-bundle example: Use only the bits we want X-Git-Tag: otter-0.6.0~190 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=e79b2b5c2ae3ee0144fe3007dd135664add768ad;p=otter.git big-bundle example: Use only the bits we want Signed-off-by: Ian Jackson --- diff --git a/Makefile b/Makefile index bf41f965..4c37ba8d 100644 --- a/Makefile +++ b/Makefile @@ -339,24 +339,12 @@ examples/big-bundle.zip: ZIPFLAGS+= -0 -r -q examples/big-bundle.zip: ZIP_INPUTS=. examples/big-bundle/otter.toml: $(LIBRARY_FILES) $(MAKEFILE_DEP) rm -rf examples/big-bundle - mkdir examples/big-bundle - cp -rl library examples/big-bundle/. - set -ex; cd examples/big-bundle/library/; for x in '' .toml; do \ - mv wikimedia$$x duped-example$$x; done - set -e; cd examples/big-bundle/library; for d in */.; do \ - cd $$d; \ - for f in *.coloured.svg; do \ - if test -f $$f; then \ - mv $$f $${f%.coloured.svg}.svg; \ - fi; \ - done; \ - for f in chess-*_c*.svg; do \ - if test -f $$f; then \ - mv -v $$f $${f/_c/w}; \ - fi; \ - done; \ - cd ..; \ - done + mkdir examples/big-bundle examples/big-bundle/library + set -e; for l in $(LIBRARIES); do \ + mkdir examples/big-bundle/$$l; \ + cp -v $$l.toml examples/big-bundle/$$l.toml; done + set -e; for e in $(LIBRARY_FILE_INPUTS); do \ + ln $${e#*:} examples/big-bundle/$${e%%.usvg:*}.svg; done echo 'title = "Autogenerated large test bundle"' >$@.tmp mv -f $@.tmp $@