Revision
17177
Author
tc
Date
2010-04-01 16:33:11 -0500 (Thu, 01 Apr 2010)

Log Message

Leave SWITCH_VERSION_REVISION alone in the tagging script unless it is explicitly specified.

Modified Paths

Property Changed

Diff

Modified: freeswitch/trunk/scripts/tagscript.sh (17176 => 17177)


--- freeswitch/trunk/scripts/tagscript.sh	2010-04-01 21:23:56 UTC (rev 17176)
+++ freeswitch/trunk/scripts/tagscript.sh	2010-04-01 21:33:11 UTC (rev 17177)
@@ -35,11 +35,11 @@
 sed -e "s|\(AC_SUBST(SWITCH_VERSION_MAJOR, \[\).*\(\])\)|\1$major\2|" \
     -e "s|\(AC_SUBST(SWITCH_VERSION_MINOR, \[\).*\(\])\)|\1$minor\2|" \
     -e "s|\(AC_SUBST(SWITCH_VERSION_MICRO, \[\).*\(\])\)|\1$micro\2|" \
-    -e "s|\(AC_SUBST(SWITCH_VERSION_REVISION, \[\).*\(\])\)|\1$rev\2|" \
     -i configure.in
 
 if [ -n "$rev" ]; then
-    sed -e "s|#\(AC_SUBST(SWITCH_VERSION_REVISION\)|\1|" \
+    sed -e "s|\(AC_SUBST(SWITCH_VERSION_REVISION, \[\).*\(\])\)|\1$rev\2|" \
+        -e "s|#\(AC_SUBST(SWITCH_VERSION_REVISION\)|\1|" \
         -i configure.in
 fi