newvers - further shorten branch name in vers.txt
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 23 Mar 2010 08:37:51 +0000 (01:37 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 23 Mar 2010 08:37:51 +0000 (01:37 -0700)
* Adjust vers.txt to generate a shortern branch name

  DEVELOPMENT -> DEV
  RELEASE -> REL

sys/conf/newvers.sh

index b6c2fb5..4110ede 100644 (file)
@@ -140,5 +140,12 @@ EOF
 
 echo `expr ${v} + 1` > version
 
+if [ "${BRANCH}" = "DEVELOPMENT" ]; then
+    SBRANCH=DEV
+fi
+if [ "${BRANCH}" = "RELEASE" ]; then
+    SBRANCH=REL
+fi
+
 stamp=`date +%Y%m%d`
-echo DragonFly-${MACHINE}-${stamp}-${BRANCH}-${GITREV} > vers.txt
+echo DragonFly-${MACHINE}-${stamp}-${SBRANCH}-${GITREV} > vers.txt