[commit] r1660 - trunk/Install/Build

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Fri Nov 4 09:02:37 CDT 2011


Author: ksmyth
Date: Fri Nov  4 09:02:37 2011
New Revision: 1660

Log:
Add -b switch to set last number in version number

Modified:
   trunk/Install/Build/build.py

Modified: trunk/Install/Build/build.py
==============================================================================
--- trunk/Install/Build/build.py	Fri Nov  4 09:02:26 2011	(r1659)
+++ trunk/Install/Build/build.py	Fri Nov  4 09:02:37 2011	(r1660)
@@ -295,9 +295,11 @@
   -e, --end=NUM       stop at build step 'NUM' (default: %d)
   -i, --include=NUM   include build step 'NUM' explicitly
   -x, --exclude=NUM   exclude build step 'NUM' explicitly
-  
+
   -V, --version=MAJOR.MINOR.PATCHLEVEL.BUILD
-                      set build version (default: %d.%d.%d.%d)
+                      set version (default: %d.%d.%d.%d)
+  -b, --build_version=BUILD
+                      set only the build version  
 
   -a, --arch=ARCH     set architecture (x64 or x86)
 \tBuild steps:
@@ -316,10 +318,10 @@
        )
 
 try:
-    opts, args = getopt.getopt(sys.argv[1:], 'hvcs:e:i:x:V:a:',
+    opts, args = getopt.getopt(sys.argv[1:], 'hvcs:e:i:x:V:b:a:',
                                ["help", "verbose", "clean",
                                 "start=", "end=", "include=", "exclude=",
-                                "version=", "arch="])
+                                "version=", "build_version=", "arch="])
     include_steps = []
     exclude_steps = []
     if args:
@@ -345,6 +347,8 @@
             step = int(val)
             if val not in exclude_steps:
                 exclude_steps.append(step)
+        if opt in ("-b", "--build_version"):
+            prefs["version_build"] = int(val)
         if opt in ("-V", "--version"):
             (M, m, p, b) = val.split(".")
             prefs["version_major"] = int(M)


More information about the gme-commit mailing list