diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/struktex/struktex.mk')
-rw-r--r-- | Master/texmf-dist/doc/latex/struktex/struktex.mk | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/latex/struktex/struktex.mk b/Master/texmf-dist/doc/latex/struktex/struktex.mk index 9af9cc9de5c..c652b677e50 100644 --- a/Master/texmf-dist/doc/latex/struktex/struktex.mk +++ b/Master/texmf-dist/doc/latex/struktex/struktex.mk @@ -104,6 +104,20 @@ VERSION_L := git describe --long | xargs git --no-pager show -s \ VERSION_S := `git describe --long | \ sed 's+-g.*++'` +# to create the correct tar-file +define TAR_COMMANDS +echo $$@ +OUT_DIR=$$(mktemp -d) +mkdir $${OUT_DIR}/struktex +cp $$@ $${OUT_DIR}/struktex +pushd $${OUT_DIR} +tar cfvz struktex.tgz struktex +popd +cp $${OUT_DIR}/struktex.tgz . +endef + +export TAR_COMMANDS + ## Main Targets # strip off the comments from the package @@ -219,9 +233,12 @@ uninstall: dist: $(PACKAGE).de.pdf $(PACKAGE).en.pdf $(PACKAGE).dtx $(PACKAGE).ins \ LIESMICH.md README.md - + rm -f THIS_IS_VERSION_* - + $(VERSION_L) > THIS_IS_VERSION_$(VERSION_S) - + tar cfvz $(PACKAGE)-$(VERSION_S).tgz $^ THIS_IS_VERSION_* + + echo "$$TAR_COMMANDS" > ./tar_commands; \ + rm -f THIS_IS_VERSION_*; \ + $(VERSION_L) > THIS_IS_VERSION_$(VERSION_S); \ + sh ./tar_commands $^; \ + mv ./struktex.tgz ./struktex-$(VERSION_S).tgz + rm ./tar_commands tds-zip: $(PACKAGE_FILES) + rm -f THIS_IS_VERSION_* *.zip; \ |