From: Mazet Laurent Date: Fri, 13 Jun 2025 15:09:53 +0000 (+0200) Subject: correct archive name X-Git-Tag: v1.0~6 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=857d9243495cea2f846922b0616c0b08153f7c1d;p=morep.git correct archive name --- diff --git a/makefile b/makefile index ed24c09..873bd42 100644 --- a/makefile +++ b/makefile @@ -78,6 +78,9 @@ VALID = $(call TITLE, $(1)) && $(2) && $(call PASS, SUCCESS) || { $(call FAIL, F GETCOMMENTS = awk '/\/\*[ \t]*$(1):/,/\*\// { sub(/.*\/\*[ \t]*$(1):/, ""); sub (/[ \t]*\*\/.*/, ""); print } /\/\/[ \t]*$(1):/ {sub (/.*\/\/[ \t]*$(1):/, ""); print }' $(2) #GETCOMMENTS = perl -- getcomments.pl -p='$(1):\s' -f='%' $(2) +DATE = $(shell git log -1 HEAD --format=%ai|awk '{print $$1}') +#DATE = $(shell hg log -r-1 --template '{date|isodate}'|awk '{print $$1}') + ## Generic rules all: depends @@ -134,8 +137,8 @@ tests: $(MAKE) all $(MAKE) $(addprefix test_,$(ALLEXE)) -archive: wipe documentation - name=`basename "$$(pwd)"`; cd ..; tar cvz --exclude='.git*' -f $$name-`date +%Y%m%d`.tgz $$name +archive: wipe changelog documentation + name=`basename "$$(pwd)"`; cd ..; tar cvz --exclude='.git*' -f $$name-$(DATE).tgz $$name ## Main rules @@ -247,9 +250,14 @@ install_lib: install_exe: make $(addprefix install_,$(ALLEXE)) +changelog: + echo "Logs from $(DATE)" > $@.txt + git log --pretty=format:'- %s' >> $@.txt +# hg log --template changelog >>$@.txt + ## Phony -.PHONY: all analyze clean count depends documentation gcovs purge tests +.PHONY: all analyze changelog clean count depends documentation gcovs purge tests ## Precious