Skip to content

Commit 64280a1

Browse files
committed
Include last commit date in filename when packaging the html manual
1 parent 43f1792 commit 64280a1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ DISTCLEANLANGS = $(patsubst manual-%,dist-clean-%,$(LANGS))
66
# Be rather specific with '--git-dir' as we do not want to pick up an unrelated
77
# outer Git repository in case the TeXworks manual sources come from an archive.
88
GIT_COMMIT = $(shell LANG=C; git --git-dir=../.git rev-parse --short HEAD)
9+
GIT_DATE = $(subst -,,$(word 1, $(shell LANG=C; git --git-dir=../.git show -s --pretty=%ci HEAD)))
910

1011
.PHONY : all clean dist dist-clean $(LANGS) $(DISTLANGS) $(CLEANLANGS) $(DISTCLEANLANGS)
1112

@@ -14,7 +15,7 @@ all : $(LANGS)
1415
clean : $(CLEANLANGS)
1516

1617
dist : $(DISTLANGS)
17-
cd ../html && zip -r TeXworks-manual-html-$(GIT_COMMIT).zip TeXworks-manual
18+
cd ../html && zip -r TeXworks-manual-html-$(GIT_DATE)-$(GIT_COMMIT).zip TeXworks-manual
1819

1920
dist-clean : $(DISTCLEANLANGS)
2021

0 commit comments

Comments
 (0)