#!/bin/sh LOCALCLASSPATH="" DIRLIBS=${GLOBUS_LOCATION}/lib/*.jar for i in ${DIRLIBS} do # if the directory is empty, then it will return the input string # this is stupid, so case for it if [ "$i" != "${DIRLIBS}" ] ; then if [ -z "$LOCALCLASSPATH" ] ; then LOCALCLASSPATH=$i else LOCALCLASSPATH="$i":$LOCALCLASSPATH fi fi done LOCALCLASSPATH=${GLOBUS_LOCATION}:$LOCALCLASSPATH export LOCALCLASSPATH