From 6b1a6d9c14db06ad75a5c6f5bafc31aae91a17e1 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Wed, 29 Aug 2007 08:09:32 +0000 Subject: [PATCH] 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) --- releasetools/docbook-build | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) 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 -- 2.40.0