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
This commit is contained in:
Ralf S. Engelschall 2001-01-20 14:17:48 +00:00
parent 220dc26a96
commit fd3b775a56

View File

@ -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 *