mirror of
https://github.com/gnustep/tools-make.git
synced 2025-06-03 18:50:55 +00:00
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:
parent
698d48d595
commit
fa68150f80
1 changed files with 13 additions and 3 deletions
|
@ -26,18 +26,23 @@
|
||||||
#
|
#
|
||||||
tool=$0
|
tool=$0
|
||||||
|
|
||||||
|
#
|
||||||
|
# The directory we are in
|
||||||
|
#
|
||||||
|
tool_dir=`dirname $tool`
|
||||||
|
|
||||||
#
|
#
|
||||||
# The java class to execute - harcoded when the template is intalled
|
# 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
|
java_obj_file=JAVA_OBJ_FILE
|
||||||
|
|
||||||
#
|
#
|
||||||
# Check that the java class exists
|
# 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 !"
|
echo "$tool: Installation problem: Can't find java class $java_obj_file !"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -84,6 +89,10 @@ else
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ( echo ${CLASSPATH} | grep -v "\./" >/dev/null ); then
|
||||||
|
CLASSPATH="$CLASSPATH:./"
|
||||||
|
fi
|
||||||
|
|
||||||
export CLASSPATH
|
export CLASSPATH
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -101,5 +110,6 @@ fi
|
||||||
#
|
#
|
||||||
# Run java on the object file
|
# Run java on the object file
|
||||||
#
|
#
|
||||||
|
cd ${tool_dir}/Java
|
||||||
exec $java_vm $java_obj_file "$@"
|
exec $java_vm $java_obj_file "$@"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue