diff options
Diffstat (limited to 'make/scripts')
-rwxr-xr-x | make/scripts/make.gluegen.all.linux-x86.sh | 7 | ||||
-rwxr-xr-x | make/scripts/make.gluegen.all.linux-x86_64.sh | 6 | ||||
-rw-r--r-- | make/scripts/setenv-build-jogl-x86.sh | 30 | ||||
-rw-r--r-- | make/scripts/setenv-build-jogl-x86_64.sh | 31 |
4 files changed, 69 insertions, 5 deletions
diff --git a/make/scripts/make.gluegen.all.linux-x86.sh b/make/scripts/make.gluegen.all.linux-x86.sh index 196cede..58685d7 100755 --- a/make/scripts/make.gluegen.all.linux-x86.sh +++ b/make/scripts/make.gluegen.all.linux-x86.sh @@ -1,9 +1,10 @@ #! /bin/sh -if [ -e ../../setenv-build-jogl-x86.sh ] ; then - . ../../setenv-build-jogl-x86.sh -fi +SDIR=`dirname $0` +if [ -e $SDIR/setenv-build-jogl-x86.sh ] ; then + . $SDIR/setenv-build-jogl-x86.sh +fi # -Dc.compiler.debug=true # -Dgluegen.cpptasks.detected.os=true \ diff --git a/make/scripts/make.gluegen.all.linux-x86_64.sh b/make/scripts/make.gluegen.all.linux-x86_64.sh index 33aae19..77d82c1 100755 --- a/make/scripts/make.gluegen.all.linux-x86_64.sh +++ b/make/scripts/make.gluegen.all.linux-x86_64.sh @@ -1,7 +1,9 @@ #! /bin/sh -if [ -e ../../setenv-build-jogl-x86_64.sh ] ; then - . ../../setenv-build-jogl-x86_64.sh +SDIR=`dirname $0` + +if [ -e $SDIR/setenv-build-jogl-x86_64.sh ] ; then + . $SDIR/setenv-build-jogl-x86_64.sh fi # -Dc.compiler.debug=true diff --git a/make/scripts/setenv-build-jogl-x86.sh b/make/scripts/setenv-build-jogl-x86.sh new file mode 100644 index 0000000..f2de867 --- /dev/null +++ b/make/scripts/setenv-build-jogl-x86.sh @@ -0,0 +1,30 @@ +#! /bin/sh + +echo $0 + +if [ -e /opt-share/apache-ant ] ; then + ANT_PATH=/opt-share/apache-ant + PATH=$ANT_PATH/bin:$PATH + export ANT_PATH +fi +if [ -z "$ANT_PATH" ] ; then + if [ -e /usr/share/ant/bin/ant -a -e /usr/share/ant/lib/ant.jar ] ; then + ANT_PATH=/usr/share/ant + export ANT_PATH + echo autosetting ANT_PATH to $ANT_PATH + fi +fi +if [ -z "$ANT_PATH" ] ; then + echo ANT_PATH does not exist, set it + exit +fi + +if [ -e /opt-linux-x86/jre6 -a -e /opt-linux-x86/j2se6 ] ; then + J2RE_HOME=/opt-linux-x86/jre6 + JAVA_HOME=/opt-linux-x86/j2se6 + PATH=$J2RE_HOME/bin:$JAVA_HOME/bin:$PATH + export J2RE_HOME JAVA_HOME +fi + +export PATH + diff --git a/make/scripts/setenv-build-jogl-x86_64.sh b/make/scripts/setenv-build-jogl-x86_64.sh new file mode 100644 index 0000000..9a4678b --- /dev/null +++ b/make/scripts/setenv-build-jogl-x86_64.sh @@ -0,0 +1,31 @@ +#! /bin/sh + +echo $0 + +if [ -e /opt-share/apache-ant ] ; then + ANT_PATH=/opt-share/apache-ant + PATH=$ANT_PATH/bin:$PATH + export ANT_PATH +fi +if [ -z "$ANT_PATH" ] ; then + if [ -e /usr/share/ant/bin/ant -a -e /usr/share/ant/lib/ant.jar ] ; then + ANT_PATH=/usr/share/ant + export ANT_PATH + echo autosetting ANT_PATH to $ANT_PATH + fi +fi +if [ -z "$ANT_PATH" ] ; then + echo ANT_PATH does not exist, set it + exit +fi + +if [ -e /opt-linux-x86_64/jre6 -a -e /opt-linux-x86_64/j2se6 ] ; then + J2RE_HOME=/opt-linux-x86_64/jre6 + JAVA_HOME=/opt-linux-x86_64/j2se6 + PATH=$J2RE_HOME/bin:$JAVA_HOME/bin:$PATH + export J2RE_HOME JAVA_HOME +fi + +export PATH + + |