From: <rla...@us...> - 2004-02-23 20:01:38
|
Update of /cvsroot/plplot/plplot/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3953 Modified Files: Tag: CFDIR make-cvs-tarball.sh Log Message: * Call cf/bootstrap.sh, instead of ./bootstrap.sh * Added option -c to unpack the tarball and run make check. Index: make-cvs-tarball.sh =================================================================== RCS file: /cvsroot/plplot/plplot/scripts/make-cvs-tarball.sh,v retrieving revision 1.14.2.1 retrieving revision 1.14.2.2 diff -u -d -r1.14.2.1 -r1.14.2.2 --- make-cvs-tarball.sh 22 Feb 2004 20:57:28 -0000 1.14.2.1 +++ make-cvs-tarball.sh 23 Feb 2004 17:39:01 -0000 1.14.2.2 @@ -26,7 +26,7 @@ usage () { local prog=`basename $0` echo "Usage: $prog [-n] [-u user] [-t tmpdir] [-w remote dir] \\" - echo " [-r branch] [-v version]" + echo " [-r branch] [-v version] [-c]" echo " $prog -d" echo " $prog -h" echo @@ -34,6 +34,8 @@ echo "Option -d prints the default values." echo "When option -v is not given, a tarball is produced with version and" echo " label containing today's date string." + echo "When option -c is given, the tarball is unpacked and make check" + echo " is run" exit $1 } @@ -44,6 +46,8 @@ BRANCH=${BRANCH:--D now} CVSTMPDIR=${CVSTMPDIR:-plplot-cvs-tarball} +config_opt="--enable-octave" + print_defaults () { local v for v in DOC_ARG WWW_USER CVSROOTDIR VERSION BRANCH CVSTMPDIR ; do @@ -52,9 +56,12 @@ exit 0 } -while getopts "dhnv:r:u:t:w:" option +do_check=no + +while getopts "cdhnv:r:u:t:w:" option do case $option in + c) do_check=yes ;; d) print_defaults ;; h) usage 0 ;; n) DOC_ARG= ;; @@ -77,10 +84,18 @@ cvs -d${WWW_USER}@$CVSROOTDIR export -d$CVSTMPDIR $BRANCH plplot \ && cd $CVSTMPDIR \ - && ./bootstrap.sh ${VERSION:---date-version} \ - && ./configure $DOC_ARG --enable-octave \ + && cf/bootstrap.sh ${VERSION:---date-version} \ + && ./configure $DOC_ARG $config_opt \ && make dist \ && TARBALL=`ls plplot-*.tar.gz` \ + && DISTDIR=`echo $TARBALL | sed /.tar.gz//` \ && mv $TARBALL .. \ && cd .. \ - && echo "CVS distribution tarball: $TARBALL" + && echo "CVS distribution tarball: $TARBALL" \ + && test "$do_check" = yes \ + && tar xfvz $TARBALL \ + && ( rm -rf $DISTDIR \ + && tar xfz $TARBALL \ + && cd $DISTDIR \ + && ./configure $config_opt \ + && make check ) |