From: Michael Smith Date: Sat, 25 Mar 2006 23:17:31 +0000 (+0000) Subject: Changed assembling of version name so that it does not start with X-Git-Tag: release/1.79.1~6^2~2960 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d8a87b3b105024ae0d19b17a2a9a7f072f7816a9;p=docbook-dsssl Changed assembling of version name so that it does not start with a date. Because if it starts with a number (e.g., "2006"), it is not a NCName. We use it in ID values, so it must be a valid NCName. --- diff --git a/releasetools/docbook-build b/releasetools/docbook-build index 436b2aabc..a2aaa01e4 100755 --- a/releasetools/docbook-build +++ b/releasetools/docbook-build @@ -274,10 +274,10 @@ EOF if grep "/dev/null; then cp -p $DISTRO/VERSION $DISTRO/VERSION.tmp - sed "s/Version>.\+$DATE\_$TIME\_$RELEASEVERSION $DISTRO/VERSION + sed "s/Version>.\+$RELEASEVERSION\_$DATE\_$TIME\ $DISTRO/VERSION rm $DISTRO/VERSION.tmp else - echo "$DATE_$TIME_$RELEASEVERSION" > $DISTRO/VERSION + echo "$RELEASEVERSION_$DATE_$TIME" > $DISTRO/VERSION fi if [ "$UPLOAD" = "yes" ]; then