[Python-checkins] CVS: python/dist/src/Doc/tools push-docs.sh,1.6.2.2,1.6.2.3

Fred L. Drake fdrake@users.sourceforge.net
Thu, 10 Jan 2002 15:10:22 -0800


Update of /cvsroot/python/python/dist/src/Doc/tools
In directory usw-pr-cvs1:/tmp/cvs-serv29658/tools

Modified Files:
      Tag: release21-maint
	push-docs.sh 
Log Message:
Update to the latest version from the trunk.

Index: push-docs.sh
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/push-docs.sh,v
retrieving revision 1.6.2.2
retrieving revision 1.6.2.3
diff -C2 -d -r1.6.2.2 -r1.6.2.3
*** push-docs.sh	2001/05/09 16:26:36	1.6.2.2
--- push-docs.sh	2002/01/10 23:10:20	1.6.2.3
***************
*** 19,29 ****
  
  EXPLANATION=''
  
! if [ "$1" = '-m' ] ; then
!     EXPLANATION="$2"
!     shift 2
! elif [ "$1" ] ; then
!     EXPLANATION="`cat $1`"
!     shift 1
  fi
  
--- 19,58 ----
  
  EXPLANATION=''
+ ANNOUNCE=true
  
! while [ "$#" -gt 0 ] ; do
!   case "$1" in
!       -m)
!           EXPLANATION="$2"
!           shift 2
!           ;;
!       -q)
!           ANNOUNCE=false
!           shift 1
!           ;;
!       -t)
!           DOCTYPE="$2"
!           shift 2
!           ;;
!       -F)
!           EXPLANATION="`cat $2`"
!           shift 2
!           ;;
!       -*)
!           echo "Unknown option: $1" >&2
!           exit 2
!           ;;
!       *)
!           break
!           ;;
!   esac
! done
! if [ "$1" ] ; then
!     if [ "$EXPLANATION" ] ; then
!         echo "Explanation may only be given once!" >&2
!         exit 2
!     fi
!     EXPLANATION="$1"
!     shift
  fi
  
***************
*** 36,40 ****
  
  # now in .../Doc/
- make --no-print-directory || exit $?
  make --no-print-directory bziphtml || exit $?
  RELEASE=`grep '^RELEASE=' Makefile | sed 's|RELEASE=||'`
--- 65,68 ----
***************
*** 43,52 ****
  ssh python.sourceforge.net tmp/update-docs.sh $DOCTYPE $PACKAGE '&&' rm tmp/update-docs.sh || exit $?
  
! Mail -s "[$DOCLABEL doc updates]" $ADDRESSES <<EOF
! The development version of the documentation has been updated:
  
! 	http://python.sourceforge.net/$DOCTYPE-docs/
  
  $EXPLANATION
  EOF
! exit $?
--- 71,86 ----
  ssh python.sourceforge.net tmp/update-docs.sh $DOCTYPE $PACKAGE '&&' rm tmp/update-docs.sh || exit $?
  
! if $ANNOUNCE ; then
!     sendmail $ADDRESSES <<EOF
! To: $ADDRESSES
! From: "Fred L. Drake" <fdrake@acm.org>
! Subject: [$DOCLABEL doc updates]
  
! The $DOCLABEL version of the documentation has been updated:
! 
!     http://python.sourceforge.net/$DOCTYPE-docs/
  
  $EXPLANATION
  EOF
!     exit $?
! fi