Author: jtr
Update of /cvs/docs/docs-common/bin In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv29611
Modified Files: bulkbuild Log Message: Added "-k" switch to keep on trying to build remaining document languages in case an earlier translation fails. Also used scalable method to get list of documents to build.
Index: bulkbuild =================================================================== RCS file: /cvs/docs/docs-common/bin/bulkbuild,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- bulkbuild 30 Nov 2005 12:56:30 -0000 1.4 +++ bulkbuild 17 Dec 2005 14:52:35 -0000 1.5 @@ -1,6 +1,7 @@ #!/bin/bash # # Written by stickster :) +# Mangled by megacoder ;-P # # Pull all active FDP docs from CVS, build and install HTML in # TARGETDIR folder. @@ -27,6 +28,7 @@ echo " -p : build PDF (not working currently)" echo " -t : build tarball" echo " -h : print usage (this message)" + echo " -k : continue building in face of errors" }
@@ -44,9 +46,10 @@
# just to make sure defaults are read unset FDPDIR HTMLDIR ANONCVS TAG CHUNKS NOCHUNKS PDF TARBALL VERBOSE +unset KEEPON BUILDS=0
-while getopts "m:f:D:a:r:Qcnpthv" OPT; do +while getopts "m:f:D:a:r:Qcnpthvk" OPT; do case $OPT in m ) WORKDIR="$OPTARG" @@ -90,6 +93,9 @@ v ) REDIR="/dev/stdout" ;; + k ) + KEEPON="-k" + ;; * ) echo "$MYSELF: invalid option: $OPT" print_usage @@ -116,8 +122,10 @@ #cvs -d $ANONCVS login cvs "$QUIET" -z3 -d $ANONCVS co docs-common
- -for DOC in `cat docs-common/bin/active`; do +# for DOC in `cat docs-common/bin/active`; do +xargs -n1 echo <docs-common/bin/active | +while read DOC; +do DONE="" echo "Checking out module $DOC from Fedora Docs CVS" cvs "$QUIET" -z3 -d $ANONCVS co $DOC 2>&1 > $REDIR @@ -127,7 +135,7 @@ rm -f tmpvars if [ "$CHUNKS" = "yes" ]; then echo "Making chunked HTML for ${DOCBASE}" - make html 2>&1 > $REDIR || ( echo "$MYSELF: CHUNKS failed" ;\ + make ${KEEPON} html 2>&1 > $REDIR || ( echo "$MYSELF: CHUNKS failed" ;\ exit 251 ) for LANG in $LANGUAGES ; do DESTDIR="${TARGETDIR}/${DOCBASE}/${LANG}" @@ -137,8 +145,8 @@ fi if [ "$NOCHUNKS" = "yes" ]; then echo "Making nochunks HTML for ${DOCBASE}" - mak html-nochunks 2>&1 > $REDIR || ( echo "$MYSELF: NOCHUNKS failed" ;\ - exit 251 ) + make ${KEEPON} html-nochunks 2>&1 > $REDIR || + ( echo "$MYSELF: NOCHUNKS failed" ; exit 251 ) for LANG in $LANGUAGES ; do DESTDIR="${TARGETDIR}/${DOCBASE}/" # add $LANG if desired [ ! -d "$DESTDIR" ] && mkdir -p $DESTDIR
docs-commits@lists.fedoraproject.org