From: <rla...@us...> - 2004-02-19 22:09:03
|
Update of /cvsroot/plplot/plplot/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8849 Modified Files: make-cvs-tarball.sh Log Message: The make-cvs-tarball.sh script accepts now command line options, for setting the login name, the branch to be checked out, and the version string, among other things. Particularly useful is the option -n, which prevents the building of the DocBook documentation, as well as its inclusion ion the tarball. Index: make-cvs-tarball.sh =================================================================== RCS file: /cvsroot/plplot/plplot/scripts/make-cvs-tarball.sh,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- make-cvs-tarball.sh 10 Feb 2004 11:34:12 -0000 1.14 +++ make-cvs-tarball.sh 19 Feb 2004 21:58:20 -0000 1.15 @@ -23,12 +23,48 @@ # along with PLplot; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +usage () { + local prog=`basename $0` + echo "Usage: $prog [-n] [-u user] [-t tmpdir] [-w remote dir] \\" + echo " [-r branch] [-v version]" + echo " $prog -d" + echo " $prog -h" + echo + echo "Option -n prevents building of the DocBook manual." + echo "Option -d prints the default values." + echo "When option -v is not given, a dated tarball is produced." + exit $1 +} + +DOC_ARG=${DOC_ARG:---enable-builddoc} WWW_USER=${WWW_USER:-rlaboiss} -CVSROOTDIR=cvs.plplot.sourceforge.net:/cvsroot/plplot -VERSION=${1:+--version=$1} -BRANCH=${2:+-r $2} +CVSROOTDIR=${CVSROOTDIR:-cvs.plplot.sourceforge.net:/cvsroot/plplot} +VERSION=${VERSION:+--version=$1} BRANCH=${BRANCH:--D now} -CVSTMPDIR=plplot-cvs-tarball +CVSTMPDIR=${CVSTMPDIR:-plplot-cvs-tarball} + +print_defaults () { + local v + for v in DOC_ARG WWW_USER CVSROOTDIR VERSION BRANCH CVSTMPDIR ; do + eval "echo $v=\\\"\$$v\\\"" + done + exit 0 +} + +while getopts "dhnv:r:u:t:w:" option +do + case $option in + d) print_defaults ;; + h) usage 0 ;; + n) DOC_ARG= ;; + r) test -n "$OPTARG" || usage 1 ; BRANCH="-r $OPTARG" ;; + t) test -n "$OPTARG" || usage 1 ; CVSTMPDIR=$OPTARG ;; + v) test -n "$OPTARG" || usage 1 ; VERSION=$OPTARG ;; + u) test -n "$OPTARG" || usage 1 ; WWW_USER=$OPTARG ;; + w) test -n "$OPTARG" || usage 1 ; CVSROOTDIR=$OPTARG ;; + *) usage 1 ;; + esac +done cleanup ( ) { rm -rf $CVSTMPDIR @@ -41,7 +77,7 @@ cvs -d${WWW_USER}@$CVSROOTDIR export -d$CVSTMPDIR $BRANCH plplot \ && cd $CVSTMPDIR \ && ./bootstrap.sh ${VERSION:---date-version} \ - && ./configure --enable-builddoc \ + && ./configure $DOC_ARG \ && make dist \ && TARBALL=`ls plplot-*.tar.gz` \ && mv $TARBALL .. \ |