mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
complain when CLASSPATH isn't set for success
This commit is contained in:
parent
3b24aab8c3
commit
4857ad6b26
1 changed files with 7 additions and 1 deletions
|
@ -1,9 +1,10 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
set -e -u
|
set -e -u
|
||||||
|
|
||||||
DIR=""
|
DIR=""
|
||||||
NODE=""
|
NODE=""
|
||||||
|
CLASSPATH=${CLASSPATH:-""}
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
[ $# -gt 0 ] && echo "Error: $1"
|
[ $# -gt 0 ] && echo "Error: $1"
|
||||||
|
@ -12,6 +13,11 @@ usage() {
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Make sure android.jar is on CLASSPATH
|
||||||
|
if [ "${CLASSPATH/android.jar/}" = "$CLASSPATH" ]; then
|
||||||
|
usage "android.jar not on CLASSPATH"
|
||||||
|
fi
|
||||||
|
|
||||||
while [ $# -gt 1 ]; do
|
while [ $# -gt 1 ]; do
|
||||||
case $1 in
|
case $1 in
|
||||||
--dir)
|
--dir)
|
||||||
|
|
Loading…
Reference in a new issue