Made it actually work :-)

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@9722 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2001-04-27 10:52:53 +00:00
parent 698d48d595
commit fa68150f80

View file

@ -26,18 +26,23 @@
#
tool=$0
#
# The directory we are in
#
tool_dir=`dirname $tool`
#
# The java class to execute - harcoded when the template is intalled
# by java-tool.make
# by java-tool.make.
#
java_obj_file=JAVA_OBJ_FILE
#
# Check that the java class exists
#
full_java_obj_file=`dirname $tool`${java_obj_file}
full_java_obj_file=${tool_dir}/Java/${java_obj_file}.class
if [ -z "$full_java_obj_file" ]; then
if [ ! -f "$full_java_obj_file" ]; then
echo "$tool: Installation problem: Can't find java class $java_obj_file !"
exit 1
fi
@ -84,6 +89,10 @@ else
fi
fi
if ( echo ${CLASSPATH} | grep -v "\./" >/dev/null ); then
CLASSPATH="$CLASSPATH:./"
fi
export CLASSPATH
#
@ -101,5 +110,6 @@ fi
#
# Run java on the object file
#
cd ${tool_dir}/Java
exec $java_vm $java_obj_file "$@"