]> granicus.if.org Git - docbook-dsssl/commitdiff
Change version tag in VERSION file before building.
authorMichael Smith <xmldoc@users.sourceforge.net>
Mon, 27 Mar 2006 08:31:33 +0000 (08:31 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Mon, 27 Mar 2006 08:31:33 +0000 (08:31 +0000)
releasetools/docbook-build

index 020ec5253471b98d3d6c4838b735b1d2d038098c..d2ef67e22290ab4f0256c4a2b72e96df939a7572 100755 (executable)
@@ -221,6 +221,14 @@ else
     fi
     # done setting up environment
 
+    if grep "<xsl:stylesheet" $DISTRO/VERSION >/dev/null; then
+      cp -p $DISTRO/VERSION $DISTRO/VERSION.tmp
+      sed "s/Version>.\+</Version>$RELEASEVERSION\_$DATE\_$TIME\</" $DISTRO/VERSION.tmp > $DISTRO/VERSION
+      rm $DISTRO/VERSION.tmp
+    else
+      echo "$RELEASEVERSION_$DATE_$TIME" > $DISTRO/VERSION
+    fi
+
     printf "Done.\n" 1>&2
     # start re-directing stout and stderr to log file (if logging enabled)
     if [ $LOGDIR ]; then
@@ -272,13 +280,6 @@ EOF
       | expand -t2 > $DISTRO/LatestChanges
     fi
 
-    if grep "<xsl:stylesheet" $DISTRO/VERSION >/dev/null; then
-      cp -p $DISTRO/VERSION $DISTRO/VERSION.tmp
-      sed "s/Version>.\+</Version>$RELEASEVERSION\_$DATE\_$TIME\</" $DISTRO/VERSION.tmp > $DISTRO/VERSION
-      rm $DISTRO/VERSION.tmp
-    else
-      echo "$RELEASEVERSION_$DATE_$TIME" > $DISTRO/VERSION
-    fi
     if [ "$UPLOAD" = "yes" ]; then
 
     make zip -C $DISTRO ZIPVER=$RELEASEVERSION TMP=$TMP || exit 1