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

Fred L. Drake python-dev@python.org
Wed, 29 Nov 2000 23:39:02 -0800


Update of /cvsroot/python/python/dist/src/Doc/tools
In directory slayer.i.sourceforge.net:/tmp/cvs-serv20907/tools

Modified Files:
	push-docs.sh update-docs.sh 
Log Message:

Adjust to allow an explanation of the changes to be included in the
notification message.


Index: push-docs.sh
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/push-docs.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** push-docs.sh	2000/10/24 19:59:55	1.2
--- push-docs.sh	2000/11/30 07:38:58	1.3
***************
*** 4,7 ****
--- 4,13 ----
  #  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
+ 
  START="`pwd`"
  MYDIR="`dirname $0`"
***************
*** 15,17 ****
  RELEASE=`grep '^RELEASE=' Makefile | sed 's|RELEASE=||'`
  make --no-print-directory HTMLDIR="$HTMLDIR" bziphtml
! scp "html-$RELEASE.tar.bz2" python.sourceforge.net:/home/users/fdrake/python-docs-update.tar.bz2
--- 21,23 ----
  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

Index: update-docs.sh
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/update-docs.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** update-docs.sh	2000/10/29 13:21:45	1.2
--- update-docs.sh	2000/11/30 07:38:59	1.3
***************
*** 12,16 ****
  fi
  
! UPDATES=/home/users/fdrake/python-docs-update.tar.bz2
  
  if [ -f "$UPDATES" ] ; then
--- 12,17 ----
  fi
  
! UPDATES=$HOME/python-docs-update.tar.bz2
! INFO=$HOME/python-docs-update.txt
  
  if [ -f "$UPDATES" ] ; then
***************
*** 21,24 ****
--- 22,26 ----
      (bzip2 -dc "$UPDATES" | tar xf -) || exit $?
      rm "$UPDATES" || exit $?
+     EXPLANATION="`cat $INFO`"
      Mail -s '[development doc updates]' \
       python-dev@python.org doc-sig@python.org \
***************
*** 27,30 ****
--- 29,35 ----
  
  	http://python.sourceforge.net/devel-docs/
+ 
+ $EXPLANATION
  EOF
+     rm -f $HOME/python-docs-update.txt
  fi