Skip to content

Commit

Permalink
Include last commit date in filename when packaging the html manual
Browse files Browse the repository at this point in the history
  • Loading branch information
stloeffler committed May 7, 2015
1 parent 43f1792 commit 64280a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ DISTCLEANLANGS = $(patsubst manual-%,dist-clean-%,$(LANGS))
# Be rather specific with '--git-dir' as we do not want to pick up an unrelated
# outer Git repository in case the TeXworks manual sources come from an archive.
GIT_COMMIT = $(shell LANG=C; git --git-dir=../.git rev-parse --short HEAD)
GIT_DATE = $(subst -,,$(word 1, $(shell LANG=C; git --git-dir=../.git show -s --pretty=%ci HEAD)))

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

Expand All @@ -14,7 +15,7 @@ all : $(LANGS)
clean : $(CLEANLANGS)

dist : $(DISTLANGS)
cd ../html && zip -r TeXworks-manual-html-$(GIT_COMMIT).zip TeXworks-manual
cd ../html && zip -r TeXworks-manual-html-$(GIT_DATE)-$(GIT_COMMIT).zip TeXworks-manual

dist-clean : $(DISTCLEANLANGS)

Expand Down

0 comments on commit 64280a1

Please sign in to comment.