#!/bin/sh echo "=====================================" echo "$0 $*" echo "=====================================" set -x date uname -a # # This script should be run nightly from cron. It checks out hdf5 # from the CVS source tree and compares it against the previous # snapshot. If anything significant changed then a new snapshot is # created, the minor version number is incremented, and the change is # checked back into the CVS repository. # # The path isn't properly initialized on hawkwind -- /usr/local/bin is # either missing or is after /usr/bin when it should be before. PATH="/usr/local/bin:$PATH" # Where are the snapshots stored? ARCHIVES_default=/afs/ncsa/ftp/HDF/pub/outgoing/hdf5/snapshots ARCHIVES=$ARCHIVES_default # Where are the HDF4 library? # At NCSA, the standard place to find HDF4 software is in /usr/ncsa/. HDF4LIB_default="/usr/ncsa/include,/usr/ncsa/lib" HDF4LIB=$HDF4LIB_default # What compression methods to use? METHODS="gzip bzip2" # Use User's MAKE if set. Else use generic make. MAKE=${MAKE:-make} # Make sure cvs would work if [ -z "$CVSROOT" ]; then echo "Where is the CVS repository?" 1>&2 exit 1 fi # # Command options cmd="all" test_opt="" errcode=0 while [ $# -gt 0 ] ; do case "$1" in all) cmd="all" ;; checkout) cmdcheckout="checkout" cmd="" ;; test) cmdtest="test" cmd="" ;; srcdir) #use srcdir option for test srcdir="yes" ;; srcdirname) shift if [ $# -lt 1 ]; then echo "srcdirname missing" errcode=1 cmd="help" break fi SRCDIRNAME="$1" ;; release) cmdrel="release" cmd="" ;; clean | distclean) cmdclean="$1" cmd="" ;; help) cmd="help" break ;; hdf4) shift if [ $# -lt 1 ]; then echo "HDF4LIB information missing" errcode=1 cmd="help" break fi HDF4LIB="$1" ;; archive) shift if [ $# -lt 1 ]; then echo "Archive pathname missing" errcode=1 cmd="help" break fi ARCHIVES="$1" ;; op-configure) shift if [ $# -lt 1 ]; then echo "op-configure option missing" errcode=1 cmd="help" break fi OP_CONFIGURE="$OP_CONFIGURE $1" ;; *) echo "Unkown option $1" errcode=1 cmd="help" break ;; esac shift done if [ "$cmd" = help ]; then set - cat <] [archive ] [dir ] [op-configure