mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
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.
This commit is contained in:
parent
82f93c693d
commit
34b48e844e
2 changed files with 26 additions and 7 deletions
|
@ -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 $?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue