diff options
author | Fred Drake <fdrake@acm.org> | 2001-04-22 06:20:31 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-04-22 06:20:31 (GMT) |
commit | 34b48e844e546df7c5939d2624f80624c23312ca (patch) | |
tree | 5b6e85e74e7bb2917ba35071cc208de0970eda54 /Doc/tools/update-docs.sh | |
parent | 82f93c693dda388e9026dafd8a5636843df82e55 (diff) | |
download | cpython-34b48e844e546df7c5939d2624f80624c23312ca.zip cpython-34b48e844e546df7c5939d2624f80624c23312ca.tar.gz cpython-34b48e844e546df7c5939d2624f80624c23312ca.tar.bz2 |
Update publish-to-SourceForge scripts to automatically determine if the
branch is the head (development) branch or a maintenance brach, and use
the appropriate target directory for each.
Diffstat (limited to 'Doc/tools/update-docs.sh')
-rwxr-xr-x | Doc/tools/update-docs.sh | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/Doc/tools/update-docs.sh b/Doc/tools/update-docs.sh index 79652ac..3cc28d5 100755 --- a/Doc/tools/update-docs.sh +++ b/Doc/tools/update-docs.sh @@ -11,11 +11,20 @@ if [ -z "$HOME" ] ; then export HOME fi -UPDATES="$HOME/tmp/$1" +DOCTYPE="$1" +UPDATES="$HOME/tmp/$2" + +TMPDIR="$$-docs" cd /home/groups/python/htdocs || exit $? -rm -rf devel-docs || exit $? -mkdir devel-docs || exit $? -cd devel-docs || exit $? +mkdir $TMPDIR || exit $? +cd $TMPDIR || exit $? (bzip2 -dc "$UPDATES" | tar xf -) || exit $? +cd .. || exit $? + +if [ -d $DOCTYPE-docs ] ; then + mv $DOCTYPE-docs $DOCTYPE-temp +fi +mv $TMPDIR $DOCTYPE-docs +rm -rf $DOCTYPE-temp || exit $? rm "$UPDATES" || exit $? |