mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +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
|
||||
|
||||
DIR=""
|
||||
NODE=""
|
||||
CLASSPATH=${CLASSPATH:-""}
|
||||
|
||||
usage() {
|
||||
[ $# -gt 0 ] && echo "Error: $1"
|
||||
|
@ -12,6 +13,11 @@ usage() {
|
|||
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
|
||||
case $1 in
|
||||
--dir)
|
||||
|
|
Loading…
Reference in a new issue