summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/photobook/Makefile
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-11-15 03:01:17 +0000
committerNorbert Preining <norbert@preining.info>2022-11-15 03:01:17 +0000
commit5e7ed3f53bdf940ec6dc2327ccf586cd540aa9b9 (patch)
treeda910de2e00e292bd1fca371e075d885d7c4b91b /macros/latex/contrib/photobook/Makefile
parent1638c7bf59f91caa61849a5c5d73be504d07a49a (diff)
CTAN sync 202211150301
Diffstat (limited to 'macros/latex/contrib/photobook/Makefile')
-rw-r--r--macros/latex/contrib/photobook/Makefile19
1 files changed, 13 insertions, 6 deletions
diff --git a/macros/latex/contrib/photobook/Makefile b/macros/latex/contrib/photobook/Makefile
index 24fa243a4f..ef68ad54bf 100644
--- a/macros/latex/contrib/photobook/Makefile
+++ b/macros/latex/contrib/photobook/Makefile
@@ -119,13 +119,19 @@ BUILD_DIR := build
#DIST_NAME := $(MODULE)-$(VERSION)
DIST_NAME := $(MODULE)-$(VERSION)-$(DATE)
DIST_DIR := dist
-DIST_FILES = \
+DIST_SCRIPTS = \
+ $(wildcard scripts/*)
+# NOTE: these are separate to unset the x bit...
+DIST_NORMAL_FILES = \
README.md \
LICENSE \
Makefile \
- $(wildcard scripts/*) \
$(MODULE).cls \
$(MODULE).pdf
+DIST_FILES = \
+ $(DIST_SCRIPTS) \
+ $(DIST_NORMAL_FILES) \
+
# Add these when ready...
# $(wildcard examples/*) \
# $(wildcard manual/*) \
@@ -270,6 +276,7 @@ manual:
.PHONY: dist
dist: $(DIST_FILES)
$(MD) $(DIST_DIR)
+ chmod 644 $(DIST_NORMAL_FILES)
zip -Drq $(DIST_DIR)/$(DIST_NAME).zip $(DIST_FILES)
# Place everything in the module dir as per CTAN spec...
zipnote $(DIST_DIR)/$(DIST_NAME).zip \
@@ -287,15 +294,15 @@ ctan-dist: dist
.PHONY: tag
tag:
@echo "Will create and publish git tag:"
- @echo " $(VERSION)"
+ @echo " v$(VERSION)"
@echo "Last 5 tags:"
- @git tag -l '[0-9]*'\
+ @git tag -l 'v[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)"
+ git tag "v$(VERSION)"
+ git push origin "v$(VERSION)"
#.PHONY: publish