diff options
Diffstat (limited to 'tools/distrib/linux32/compile.sh')
-rwxr-xr-x | tools/distrib/linux32/compile.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/distrib/linux32/compile.sh b/tools/distrib/linux32/compile.sh index c073b1b..6bee820 100755 --- a/tools/distrib/linux32/compile.sh +++ b/tools/distrib/linux32/compile.sh @@ -3,10 +3,12 @@ # reserved. Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file. +# Determine the absolute path to the current directory. +DIR="$( cd "$( dirname "$0" )" && pwd )" +BIN_DIR="${DIR}/bin" + # Compile the test program. -javac -cp "./bin:./bin/*" ./bin/tests/detailed/*.java ./bin/tests/detailed/dialog/*.java ./bin/tests/detailed/handler/*.java ./bin/tests/detailed/ui/*.java ./bin/tests/simple/*.java +javac -cp "${BIN_DIR}:${BIN_DIR}/*" "${BIN_DIR}"/tests/detailed/*.java "${BIN_DIR}"/tests/detailed/dialog/*.java "${BIN_DIR}"/tests/detailed/handler/*.java "${BIN_DIR}"/tests/detailed/ui/*.java "${BIN_DIR}"/tests/simple/*.java # Create the test JAR file. -cd bin -jar -cf jcef-tests.jar tests/detailed/*.class tests/detailed/dialog/*.class tests/detailed/handler/*.class tests/detailed/ui/*.class tests/simple/*.java -cd ..
\ No newline at end of file +jar -cf "${BIN_DIR}"/jcef-tests.jar -C "${BIN_DIR}" tests |