From: Michael Smith Date: Wed, 29 Aug 2007 08:09:32 +0000 (+0000) Subject: Removed code for determing DIFFVER (we no longer use DIFFVER for X-Git-Tag: release/1.79.1~6^2~1722 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa4fb4189dddff50ce05a8919f17e99a8414982e;p=docbook-dsssl Removed code for determing DIFFVER (we no longer use DIFFVER for anything); removed branching logic for condition of non-XSLT VERSION file vs. XSLT one (we only use XSLT VERSION files now, so no need to handle the legacy case) --- diff --git a/releasetools/docbook-build b/releasetools/docbook-build index a1d771185..b349dc220 100755 --- a/releasetools/docbook-build +++ b/releasetools/docbook-build @@ -234,22 +234,15 @@ else svn update $DISTRO/VERSION 1>/dev/null 2>&1 printf "." 1>&2 - if grep "/dev/null; then - DIFFVER=`grep "Version>.\+<" $DISTRO/VERSION \ - | sed "s/^[^<]*\(.\+\)<\/fm:Version>$/\1/" | tr -d "\n"` - else - DIFFVER=`cat $DISTRO/VERSION` - fi - - if grep "/dev/null; then - cp -p $DISTRO/VERSION $DISTRO/VERSION.tmp - sed "s/Version>.\+$RELEASEVERSION\_$REVISION\ $DISTRO/VERSION - rm $DISTRO/VERSION.tmp - else - echo "$RELEASEVERSION_$REVISION" > $DISTRO/VERSION - fi + # replace the current fm:Version value with the snapshot number + cp -p $DISTRO/VERSION $DISTRO/VERSION.tmp + # FIXME: we really should be doing this using a modifiled XSLT identity + # transform, but anyway, this works OK for now... + sed "s/Version>.\+$RELEASEVERSION\_$REVISION\ $DISTRO/VERSION + rm $DISTRO/VERSION.tmp printf "Done.\n" 1>&2 + # start re-directing stout and stderr to log file (if logging enabled) if [ $LOGDIR ]; then echo "Logging all further output to $LOGDIR/docbook-$DISTRO-$RELEASEVERSION.log.tmp" @@ -274,7 +267,7 @@ else echo "Building $DISTRO distribution..." echo - make distrib -C $DISTRO DIFFVER=$DIFFVER XSLT="$DOCBOOK_SVN/buildtools/xslt -$ENGINE" PDF_MAKER=$PDF_MAKER + make distrib -C $DISTRO XSLT="$DOCBOOK_SVN/buildtools/xslt -$ENGINE" PDF_MAKER=$PDF_MAKER cat <<- EOF > HEADER.txt The snapshot for a particular distribution is re-built automatically each time