File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+
612START=" ` pwd` "
713MYDIR=" ` dirname $0 ` "
814cd " $MYDIR "
@@ -14,4 +20,4 @@ make --no-print-directory || exit $?
1420cd ..
1521RELEASE=` grep ' ^RELEASE=' Makefile | sed ' s|RELEASE=||' `
1622make --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
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ if [ -z "$HOME" ] ; then
1111 export HOME
1212fi
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
1617if [ -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]' \
24262527 << EOF
2628The development version of the documentation has been updated:
2729
2830 http://python.sourceforge.net/devel-docs/
31+
32+ $EXPLANATION
2933EOF
34+ rm -f $HOME /python-docs-update.txt
3035fi
You can’t perform that action at this time.
0 commit comments