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

Skip to content

Commit 827bb9f

Browse files
committed
Adjust to allow an explanation of the changes to be included in the
notification message.
1 parent e463f8e commit 827bb9f

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

Doc/tools/push-docs.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
# Script to push docs from my development area to SourceForge, where the
44
# update-docs.sh script unpacks them into their final destination.
55

6+
TARGET=python.sourceforge.net:/home/users/fdrake
7+
8+
if [ "$1" ] ; then
9+
scp "$1" $TARGET/python-docs-update.txt || exit $?
10+
fi
11+
612
START="`pwd`"
713
MYDIR="`dirname $0`"
814
cd "$MYDIR"
@@ -14,4 +20,4 @@ make --no-print-directory || exit $?
1420
cd ..
1521
RELEASE=`grep '^RELEASE=' Makefile | sed 's|RELEASE=||'`
1622
make --no-print-directory HTMLDIR="$HTMLDIR" bziphtml
17-
scp "html-$RELEASE.tar.bz2" python.sourceforge.net:/home/users/fdrake/python-docs-update.tar.bz2
23+
scp "html-$RELEASE.tar.bz2" $TARGET/python-docs-update.tar.bz2

Doc/tools/update-docs.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ if [ -z "$HOME" ] ; then
1111
export HOME
1212
fi
1313

14-
UPDATES=/home/users/fdrake/python-docs-update.tar.bz2
14+
UPDATES=$HOME/python-docs-update.tar.bz2
15+
INFO=$HOME/python-docs-update.txt
1516

1617
if [ -f "$UPDATES" ] ; then
1718
cd /home/groups/python/htdocs
@@ -20,11 +21,15 @@ if [ -f "$UPDATES" ] ; then
2021
cd devel-docs || exit $?
2122
(bzip2 -dc "$UPDATES" | tar xf -) || exit $?
2223
rm "$UPDATES" || exit $?
24+
EXPLANATION="`cat $INFO`"
2325
Mail -s '[development doc updates]' \
2426
2527
<<EOF
2628
The development version of the documentation has been updated:
2729
2830
http://python.sourceforge.net/devel-docs/
31+
32+
$EXPLANATION
2933
EOF
34+
rm -f $HOME/python-docs-update.txt
3035
fi

0 commit comments

Comments
 (0)