From: Travis Cross Date: Thu, 1 Apr 2010 21:33:11 +0000 (+0000) Subject: Leave SWITCH_VERSION_REVISION alone in the tagging script unless it is explicitly... X-Git-Tag: v1.0.5.597675e~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f29a839c47a193c67bbf2f473c62ccd89153a3e;p=thirdparty%2Ffreeswitch.git Leave SWITCH_VERSION_REVISION alone in the tagging script unless it is explicitly specified. --- diff --git a/scripts/tagscript.sh b/scripts/tagscript.sh index 8a4a4e821b..48a377ffd7 100755 --- a/scripts/tagscript.sh +++ b/scripts/tagscript.sh @@ -35,11 +35,11 @@ fi 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