summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2007-06-12 12:10:33 +0000
committermichelou <michelou@epfl.ch>2007-06-12 12:10:33 +0000
commitf1eb98a9ec70d6327227a736ea07bcf6b37656bd (patch)
tree72b6262f236cdef6da106f4601172f49d1ab739e /test
parent625d525491098309f19ae61ee591539cbc9e60b8 (diff)
downloadscala-f1eb98a9ec70d6327227a736ea07bcf6b37656bd.tar.gz
scala-f1eb98a9ec70d6327227a736ea07bcf6b37656bd.tar.bz2
scala-f1eb98a9ec70d6327227a736ea07bcf6b37656bd.zip
disabled debug flag
Diffstat (limited to 'test')
-rwxr-xr-xtest/files/jvm/mkLibNatives.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/files/jvm/mkLibNatives.sh b/test/files/jvm/mkLibNatives.sh
index e911330ab3..e97bb01c15 100755
--- a/test/files/jvm/mkLibNatives.sh
+++ b/test/files/jvm/mkLibNatives.sh
@@ -9,7 +9,7 @@
# variables
# set any value to enable debugging output
-debug=1
+debug=
cygwin=false;
darwin=false;
@@ -27,7 +27,7 @@ LIB_NAME=libnatives
if [ -z "${JAVA_HOME}" ]; then
echo "environment variable JAVA_HOME is undefined."
exit
-elif [ $cygwin ]; then
+elif $cygwin; then
echo "Cygwin not supported (use 'mkLibNatives.bat')."
exit
fi
@@ -44,11 +44,11 @@ LNK_OPTIONS="-shared -Wl,-soname,${LIB_NAME}"
##############################################################################
# commands
-[ "$debug" ] && echo ${JAVAH} ${JAVAH_OPTIONS} ${CLASS_NAME}
+[ $debug ] && echo ${JAVAH} ${JAVAH_OPTIONS} ${CLASS_NAME}
${JAVAH} ${JAVAH_OPTIONS} ${CLASS_NAME}
-[ "$debug" ] && echo ${CC} ${CC_OPTIONS} ${CC_INCLUDES} -o ${OBJ_NAME}.o natives.c
+[ $debug ] && echo ${CC} ${CC_OPTIONS} ${CC_INCLUDES} -o ${OBJ_NAME}.o natives.c
${CC} ${CC_OPTIONS} ${CC_INCLUDES} -o ${OBJ_NAME}.o natives.c
-[ "$debug" ] && echo ${CC} -shared -Wl,-soname,${LIB_NAME} -o ${LIB_NAME}.so ${OBJ_NAME}.o
+[ $debug ] && echo ${CC} -shared -Wl,-soname,${LIB_NAME} -o ${LIB_NAME}.so ${OBJ_NAME}.o
${CC} ${LNK_OPTIONS} -o ${LIB_NAME}.so ${OBJ_NAME}.o