From: Shawn B. <sha...@us...> - 2002-08-29 21:49:40
|
Update of /cvsroot/openorb/admin/bin In directory usw-pr-cvs1:/tmp/cvs-serv19130 Added Files: getpkgs.sh Log Message: initial version --- NEW FILE: getpkgs.sh --- #!/bin/sh # # $Id: getpkgs.sh,v 1.1 2002/08/29 21:49:38 shawnboyce Exp $ # # This script checks out the specified tag for the specified package. # # Usage: # getpkgs.sh version tagsuffix [package] # # Parameters: # version ( e.g. 1.3.0 ) # tagsuffix ( e.g. BETA1 ) # package ( e.g. OpenORB ) # # Note: # Please make sure to include the JSSE (1.0.2) environment # settings otherwise SSL will fail with an unresolved # symbol during compile. # usage() { echo echo "Usage:" echo " getpkgs.sh version tagsuffix [package]" echo echo "Parameters:" echo " version The version number of the current release." echo " tagsuffix The tag suffix (e.g. HEAD)." echo " package LONG_NAME of the package (optional)." echo " Default is all packages." echo echo "Notes:" echo " Please make sure to include the JSSE (1.0.2) environment" echo " settings otherwise SSL will fail with an unresolved" echo " symbol during compile." echo exit 1 } # # Set up the environment # if [ -z "$JAVA_HOME" ] ; then JAVAC=`which java` if [ -z "$JAVAC" ] ; then echo "Cannot find JAVA. Please set your PATH." exit 1 fi JAVA_BIN=`dirname $JAVAC` JAVA_HOME=$JAVA_BIN/.. fi JAVAC=$JAVA_HOME/bin/java if [ $# -gt 3 ] then usage fi if [ $# -lt 2 ] then usage fi PACKAGE= VERSION=$1 TAGSUFFIX=$2 if [ $# -eq 3 ] then PACKAGE=$3 fi VERSIONTAG=`echo $VERSION | tr . _` # # load the function which contains the module dependencies # . ./admin/etc/deps # Call the function that defines the dependencies # @param PACKAGE The module to build # @return PACKAGES The dependency list of the specified package. pkgdeps # # Checking out tools # if [ "$TAGSUFFIX" = "HEAD" ] then echo ">>>>>> Checking out HEAD revision of tools..." cvs co tools else echo "Checking out tag tools'_'$VERSIONTAG'_'$TAGSUFFIX of module tools..." cvs co -r 'tools_'$VERSIONTAG'_'$TAGSUFFIX tools fi # # loop through the sub-dirs and perform a release build # IFS=: for NAME_LONG in $PACKAGES; do echo "Deleting $NAME_LONG..." rm -rf $NAME_LONG if [ "$TAGSUFFIX" = "HEAD" ] then echo ">>>>>> Checking out HEAD revision of $NAME_LONG..." cvs co $NAME_LONG else echo "Checking out tag $NAME_LONG'_'$VERSIONTAG'_'$TAGSUFFIX of module $NAME_LONG..." cvs co -r $NAME_LONG'_'$VERSIONTAG'_'$TAGSUFFIX $NAME_LONG fi done echo "Package retrieval complete." |