[Python-checkins] CVS: python/dist/src/Doc/tools push-docs.sh,1.3,1.4 update-docs.sh,1.4,1.5

Fred L. Drake fdrake@users.sourceforge.net
2001年3月02日 13:06:01 -0800


Update of /cvsroot/python/python/dist/src/Doc/tools
In directory usw-pr-cvs1:/tmp/cvs-serv24749
Modified Files:
	push-docs.sh update-docs.sh 
Log Message:
Revise the scripts I use to update the documentation on the SourceForge
site. These now seem (slightly) more reliable, and easier to work with
since update-docs.sh no longer needs to be installed ahead of time on
my account at SF.
Index: push-docs.sh
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/push-docs.sh,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** push-docs.sh	2000年11月30日 07:38:58	1.3
--- push-docs.sh	2001年03月02日 21:05:58	1.4
***************
*** 4,11 ****
 # update-docs.sh script unpacks them into their final destination.
 
! TARGET=python.sourceforge.net:/home/users/fdrake
 
! if [ "1ドル" ] ; then
! scp "1ドル" $TARGET/python-docs-update.txt || exit $?
 fi
 
--- 4,22 ----
 # update-docs.sh script unpacks them into their final destination.
 
! TARGET=python.sourceforge.net:/home/users/fdrake/tmp
 
! ADDRESSES='python-dev@python.org doc-sig@python.org python-list@python.org'
! 
! 
! set -x
! 
! EXPLANATION=''
! 
! if [ "1ドル" = '-m' ] ; then
! EXPLANATION="2ドル"
! shift 2
! elif [ "1ドル" ] ; then
! EXPLANATION="`cat 1ドル`"
! shift 1
 fi
 
***************
*** 14,23 ****
 cd "$MYDIR"
 MYDIR="`pwd`"
- HTMLDIR="${HTMLDIR:-html}"
 
- cd "../$HTMLDIR"
- make --no-print-directory || exit $?
 cd ..
 RELEASE=`grep '^RELEASE=' Makefile | sed 's|RELEASE=||'`
! make --no-print-directory HTMLDIR="$HTMLDIR" bziphtml
! scp "html-$RELEASE.tar.bz2" $TARGET/python-docs-update.tar.bz2
--- 25,45 ----
 cd "$MYDIR"
 MYDIR="`pwd`"
 
 cd ..
+ 
+ # now in .../Doc/
+ make --no-print-directory || exit $?
+ make --no-print-directory bziphtml || exit $?
 RELEASE=`grep '^RELEASE=' Makefile | sed 's|RELEASE=||'`
! scp "html-$RELEASE.tar.bz2" $TARGET/python-docs-update.tar.bz2 || exit $?
! scp tools/update-docs.sh $TARGET/update-docs.sh || exit $?
! ssh python.sourceforge.net 'tmp/update-docs.sh && rm tmp/update-docs.sh' || exit $?
! 
! Mail -s '[development doc updates]' $ADDRESSES <<EOF
! The development version of the documentation has been updated:
! 
! 	http://python.sourceforge.net/devel-docs/
! 
! $EXPLANATION
! EOF
! exit $?
Index: update-docs.sh
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/update-docs.sh,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** update-docs.sh	2001年02月14日 21:26:31	1.4
--- update-docs.sh	2001年03月02日 21:05:58	1.5
***************
*** 1,9 ****
 #! /bin/sh
 
! # Script which determines if a new development snapshot of the
! # documentation is available, and unpacks it into the "Python @
! # SourceForge" website.
 #
! # A copy of this script is run periodically via cron.
 
 if [ -z "$HOME" ] ; then
--- 1,9 ----
 #! /bin/sh
 
! # Script which installs a development snapshot of the documentation
! # into the "Python @ SourceForge" website.
 #
! # The push-docs.sh script pushes this to the SourceForge when needed
! # and removes it when done.
 
 if [ -z "$HOME" ] ; then
***************
*** 12,39 ****
 fi
 
! UPDATES=$HOME/python-docs-update.tar.bz2
! INFO=$HOME/python-docs-update.txt
 
! if [ -f "$UPDATES" ] ; then
! cd /home/groups/python/htdocs
! rm -rf devel-docs || exit $?
! mkdir devel-docs || exit $?
! cd devel-docs || exit $?
! (bzip2 -dc "$UPDATES" | tar xf -) || exit $?
! rm "$UPDATES" || exit $?
! if [ -f "$INFO" ] ; then
! EXPLANATION="`cat $INFO`"
! else
! EXPLANATION=''
! fi
! Mail -s '[development doc updates]' \
! python-dev@python.org doc-sig@python.org \
! <<EOF
! The development version of the documentation has been updated:
! 
! 	http://python.sourceforge.net/devel-docs/
! 
! $EXPLANATION
! EOF
! rm -f $HOME/python-docs-update.txt
! fi
--- 12,21 ----
 fi
 
! UPDATES=$HOME/tmp/python-docs-update.tar.bz2
 
! cd /home/groups/python/htdocs
! rm -rf devel-docs || exit $?
! mkdir devel-docs || exit $?
! cd devel-docs || exit $?
! (bzip2 -dc "$UPDATES" | tar xf -) || exit $?
! rm "$UPDATES" || exit $?

AltStyle によって変換されたページ (->オリジナル) /