if [ -z "$1" ] ; then echo "Error no install location given" exit 1 fi GLOBUS_LOCATION=$1 if [ -z "$2" ] ; then echo "No flavor given" exit 1 fi FLAVOR=$2 if [ ! -e gt4.2.1-all-source-installer.tar.bz2 ] ; then echo "Error: No source tarball." exit 1 fi if [ ! -e NorduGrid-globus.patch ] ; then echo "Error: No patch tarball." exit 1 fi rm -rf $GLOBUS_LOCATION mkdir -p $GLOBUS_LOCATION rm -rf gt4.2.1-all-source-installer tar -j -x -f gt4.2.1-all-source-installer.tar.bz2 cd gt4.2.1-all-source-installer patch -p1 < ../NorduGrid-globus.patch ln -s ../../../../../source-trees/gsi/gssapi/source/library/gssapi.sym \ source-trees-thr/gsi/gssapi/source/library/gssapi.sym ln -s ../../../../source-trees/core/source/scripts/globus-build-env-noflavor.sh.in \ source-trees-thr/core/source/scripts/globus-build-env-noflavor.sh.in ./configure --prefix=$GLOBUS_LOCATION --with-flavor=$FLAVOR make gpt cd source-trees/core/source rm -rf autom4te.cache GPT_LOCATION=$GLOBUS_LOCATION GLOBUS_LOCATION=$GLOBUS_LOCATION ./bootstrap cd - make globus_core for dir in \ common/source \ common/setup \ gsi/openssl_error/source \ gsi/proxy/proxy_ssl/source \ gsi/openssl_module/source \ gsi/cert_utils/source \ gsi/sysconfig/source \ gsi/callback/source \ gsi/credential/source \ gsi/proxy/proxy_core/source \ callout/source \ gsi/gssapi/source \ gsi/gss_assist/source \ gsi/proxy/proxy_utils/source \ xio/src \ gsi/gssapi_error/source \ xio/drivers/gsi \ xio/drivers/popen/source \ io/compat \ gridftp/control/source \ gridftp/client/source \ gass/transfer/source \ gass/copy/source \ gram/rsl/source \ gram/rsl_assist/source \ usage/c/sender/source \ replica/rls/client \ replica/rls/server \ replica/rls/setup ; do cd source-trees/$dir rm -f doxygen/Doxyfile* rm -f doxygen/Makefile.am rm -f pkgdata/Makefile.am rm -f globus_automake* rm -rf autom4te.cache GPT_LOCATION=$GLOBUS_LOCATION GLOBUS_LOCATION=$GLOBUS_LOCATION \ $GLOBUS_LOCATION/libexec/globus-bootstrap.sh cd - done make make install