OSSP CVS Repository

ossp - Check-in [352]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 352
Date: 2001-Jan-20 15:17:48 (local)
2001-Jan-20 14:17:48 (UTC)
User:rse
Branch:
Comment: 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

Tickets:
Inspections:
Files:
ossp-pkg/petidomo/Makefile.in      1.41 -> 1.42     8 inserted, 0 deleted

ossp-pkg/petidomo/Makefile.in 1.41 -> 1.42

--- Makefile.in  2001/01/20 13:58:45     1.41
+++ Makefile.in  2001/01/20 14:17:48     1.42
@@ -122,6 +122,14 @@
 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 *

CVSTrac 2.0.1