diff options
author | Norbert Preining <norbert@preining.info> | 2022-11-14 03:04:08 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-11-14 03:04:08 +0000 |
commit | 1638c7bf59f91caa61849a5c5d73be504d07a49a (patch) | |
tree | 1000754f2cc885bb216b9b4173cb101c13159785 /macros/latex/contrib/photobook/Makefile | |
parent | 1b59c3c45170420996d629b296e2214933ee1add (diff) |
CTAN sync 202211140304
Diffstat (limited to 'macros/latex/contrib/photobook/Makefile')
-rw-r--r-- | macros/latex/contrib/photobook/Makefile | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/macros/latex/contrib/photobook/Makefile b/macros/latex/contrib/photobook/Makefile index fd760d0352..24fa243a4f 100644 --- a/macros/latex/contrib/photobook/Makefile +++ b/macros/latex/contrib/photobook/Makefile @@ -58,7 +58,8 @@ MODULE := photobook VERSION = $(strip $(shell \ cat $(MODULE).cls \ | grep 'VERSION{' \ - | sed 's/.*{\(.*\)}.*/\1/')) + | sed 's/.*{\(.*\)}.*/\1/' \ + | sed 's/v//')) DATE = $(strip $(shell date "+%Y%m%d%H%M")) COMMIT = $(strip $(shell git rev-parse HEAD)) @@ -266,10 +267,6 @@ manual: mv manual/*.pdf . -%.zipnote: %.zip - zipnote $< > $@ - - .PHONY: dist dist: $(DIST_FILES) $(MD) $(DIST_DIR) @@ -279,9 +276,30 @@ dist: $(DIST_FILES) | sed 's/^\@ \([^(].*\)$$/@ \1\n@=$(MODULE)\/\1/' \ | zipnote -w $(DIST_DIR)/$(DIST_NAME).zip -CTAN: dist - $(MD) $(DIST_DIR)/CTAN - cp $(DIST_DIR)/$(DIST_NAME).zip $(DIST_DIR)/CTAN/$(MODULE).zip + +# this is used to create a CTAN-compatible dist archive... +.PHONY: ctan-dist +ctan-dist: dist + cp -f $(DIST_DIR)/$(DIST_NAME).zip $(DIST_DIR)/$(MODULE).zip + + + +.PHONY: tag +tag: + @echo "Will create and publish git tag:" + @echo " $(VERSION)" + @echo "Last 5 tags:" + @git tag -l '[0-9]*'\ + | tail -n 5 \ + | sed 's/^/ /' + @echo "Note that this must be done after a commit." + @read -p "(press any key to continue or ctrl-c to cancel)" + git tag "$(VERSION)" + git commit origin "$(VERSION)" + + +#.PHONY: publish +#publish: dist .PHONY: all |