Index: modules/resources/src/main/resources/bin/wsrunclient.sh =================================================================== --- modules/resources/src/main/resources/bin/wsrunclient.sh (revision 13430) +++ modules/resources/src/main/resources/bin/wsrunclient.sh (working copy) @@ -1,7 +1,19 @@ #!/bin/sh -DIRNAME=`dirname $0` -PROGNAME=`basename $0` +# Extract the directory and the program name +# takes care of symlinks +PRG="$0" +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG="`dirname "$PRG"`/$link" + fi +done +DIRNAME=`dirname "$PRG"` +PROGNAME=`basename "$PRG"` if [ $# -eq 0 ]; then echo "$PROGNAME is a command line tool that invokes a JBossWS JAX-WS Web Service client." Index: modules/resources/src/main/resources/bin/wsprovide.sh =================================================================== --- modules/resources/src/main/resources/bin/wsprovide.sh (revision 13430) +++ modules/resources/src/main/resources/bin/wsprovide.sh (working copy) @@ -1,7 +1,19 @@ #!/bin/sh -DIRNAME=`dirname $0` -PROGNAME=`basename $0` +# Extract the directory and the program name +# takes care of symlinks +PRG="$0" +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG="`dirname "$PRG"`/$link" + fi +done +DIRNAME=`dirname "$PRG"` +PROGNAME=`basename "$PRG"` # OS specific support (must be 'true' or 'false'). cygwin=false; Index: modules/resources/src/main/resources/bin/wsconsume.sh =================================================================== --- modules/resources/src/main/resources/bin/wsconsume.sh (revision 13430) +++ modules/resources/src/main/resources/bin/wsconsume.sh (working copy) @@ -1,7 +1,19 @@ #!/bin/sh -DIRNAME=`dirname $0` -PROGNAME=`basename $0` +# Extract the directory and the program name +# takes care of symlinks +PRG="$0" +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG="`dirname "$PRG"`/$link" + fi +done +DIRNAME=`dirname "$PRG"` +PROGNAME=`basename "$PRG"` # OS specific support (must be 'true' or 'false'). cygwin=false;