summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/crop/Makefile
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-06-06 03:02:31 +0000
committerNorbert Preining <norbert@preining.info>2020-06-06 03:02:31 +0000
commit527cbc8280407d055d185ad11f79b81b032eec7e (patch)
treeded40afa49ba9d7d482919c81250692def244b71 /macros/latex/contrib/crop/Makefile
parentf51a463b880756f6a989cac367c3d99fb1373719 (diff)
CTAN sync 202006060302
Diffstat (limited to 'macros/latex/contrib/crop/Makefile')
-rw-r--r--macros/latex/contrib/crop/Makefile17
1 files changed, 13 insertions, 4 deletions
diff --git a/macros/latex/contrib/crop/Makefile b/macros/latex/contrib/crop/Makefile
index 6b48c0902e..3f0ebd7860 100644
--- a/macros/latex/contrib/crop/Makefile
+++ b/macros/latex/contrib/crop/Makefile
@@ -1,14 +1,18 @@
NAME=crop
-ARCHIVE_NAME=$(NAME).tar.gz
-ARCHIVE_CONTENTS=$(NAME).dtx $(NAME).pdf Makefile README $(NAME).ins $(NAME).sty
+VERSION=`cat VERSION`
+ARCHIVE_NAME=$(NAME).zip
+ARCHIVE_CONTENTS=$(NAME).dtx $(NAME).pdf Makefile README $(NAME).ins
-all: $(NAME).sty $(NAME).pdf
+all: $(NAME).sty $(NAME).pdf VERSION
archive: $(ARCHIVE_CONTENTS)
rm -rf $(NAME)/
mkdir $(NAME)/
cp $(ARCHIVE_CONTENTS) $(NAME)/
- tar -czf $(ARCHIVE_NAME) $(NAME)
+ zip -r $(ARCHIVE_NAME) $(NAME)
+
+$(NAME).dtx: $(NAME).dtx.in
+ nancy $(NAME).dtx.in . > $(NAME).dtx
$(NAME).pdf: $(NAME.dtx)
latexmk $(NAME).dtx
@@ -18,3 +22,8 @@ $(NAME).sty: $(NAME).ins
$(NAME).ins:
pdflatex $(NAME).dtx
+
+release: archive
+ git diff --exit-code && \
+ git tag -a -m "Release tag" "v$(VERSION)" && \
+ git push && git push --tags