Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 69db2b9

Browse files
committed
- change computation of VERSION to use tools/getversioninfo; this is
more reliable than using the $Revision$ expansion - $RELEASE is no longer needed; we can just use $VERSION now
1 parent 984920b commit 69db2b9

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

Doc/tools/push-docs.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ TARGET="$TARGETHOST:$TARGETDIR"
1010

1111
1212

13-
VERSION=`echo '$Revision$' | sed 's/[$]Revision: \(.*\) [$]/\1/'`
13+
TOOLDIR="`dirname $0`"
14+
VERSION=`$TOOLDIR/getversioninfo`
15+
16+
# Set $EXTRA to something non-empty if this is a non-trunk version:
1417
EXTRA=`echo "$VERSION" | sed 's/^[0-9][0-9]*\.[0-9][0-9]*//'`
15-
if [ "$EXTRA" ] ; then
18+
19+
if echo "$EXTRA" | grep -q '[.]' ; then
1620
DOCLABEL="maintenance"
1721
DOCTYPE="maint"
1822
else
@@ -68,8 +72,7 @@ cd ..
6872

6973
# now in .../Doc/
7074
make --no-print-directory bziphtml || exit $?
71-
RELEASE=`grep '^RELEASE=' Makefile | sed 's|RELEASE=||'`
72-
PACKAGE="html-$RELEASE.tar.bz2"
75+
PACKAGE="html-$VERSION.tar.bz2"
7376
scp "$PACKAGE" tools/update-docs.sh $TARGET/ || exit $?
7477
ssh "$TARGETHOST" tmp/update-docs.sh $DOCTYPE $PACKAGE '&&' rm tmp/update-docs.sh || exit $?
7578

0 commit comments

Comments
 (0)