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

Fred L. Drake fdrake@users.sourceforge.net
Tue, 12 Jun 2001 06:31:39 -0700


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

Modified Files:
	push-docs.sh 
Log Message:

Make the option processing more robust.
Add a -F option similar to "cvs commit -F <file>".
Add a -t option to allow specifying the prefix to the directory into which
the docs should be unpacked (useful when I start trying out new styles for
the presentation).


Index: push-docs.sh
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/push-docs.sh,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** push-docs.sh	2001/05/09 16:33:34	1.8
--- push-docs.sh	2001/06/12 13:31:37	1.9
***************
*** 20,29 ****
  EXPLANATION=''
  
! if [ "$1" = '-m' ] ; then
!     EXPLANATION="$2"
!     shift 2
! elif [ "$1" ] ; then
!     EXPLANATION="`cat $1`"
!     shift 1
  fi
  
--- 20,53 ----
  EXPLANATION=''
  
! while [ "$#" -gt 0 ] ; do
!   case "$1" in
!       -m)
!           EXPLANATION="$2"
!           shift 2
!           ;;
!       -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
  
***************
*** 46,50 ****
  The development version of the documentation has been updated:
  
! 	http://python.sourceforge.net/$DOCTYPE-docs/
  
  $EXPLANATION
--- 70,74 ----
  The development version of the documentation has been updated:
  
!     http://python.sourceforge.net/$DOCTYPE-docs/
  
  $EXPLANATION