From fd3b775a56f5aa3e712e7da79bcbf96f87267085 Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Sat, 20 Jan 2001 14:17:48 +0000 Subject: [PATCH] Provide commands for increasing or updating version information in version.c: # update the date, but keep version number $ make update-version # interactively specify new version number $ make new-version # batch specify new version version number $ make new-version VERSION=0.8.15 --- Makefile.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile.in b/Makefile.in index 1906b26..5daa7fe 100644 --- a/Makefile.in +++ b/Makefile.in @@ -122,6 +122,14 @@ distclean:: clean realclean:: distclean rm -f configure +# increase or update version information +new-version: + @V="$(VERSION)"; OPT="-e"; [ ".$$V" != . ] && OPT="-s$$V"; \ + $(SHTOOL) version -lc -n 'Petidomo' -p petidomo_ $$OPT version.c +update-version: + @OPT="-s`$(SHTOOL) version -lc -dshort version.c`"; \ + $(SHTOOL) version -lc -n 'Petidomo' -p petidomo_ $$OPT version.c + dist: distclean @echo "Fixing source tree permissions"; \ $(SHTOOL) fixperm *