box-o-sand/practicing-processing/bin/processing-commander

21 lines
508 B
Plaintext
Raw Normal View History

2012-01-02 05:32:34 +00:00
#!/bin/bash
2012-01-02 05:52:00 +00:00
set -e
2012-01-02 05:32:34 +00:00
TOP="$(dirname $(dirname $(readlink -f -- "$0")))"
2012-01-02 05:52:00 +00:00
$TOP/bin/prochome-check >/dev/null
if [ ! -f "$TOP/lib/preferences.txt" ]; then
cp "$TOP/lib/preferences.txt.stub" "$TOP/lib/preferences.txt"
fi
2012-01-02 05:32:34 +00:00
CP="$CLASSPATH"
CP="$TOP/lib/mbh-processing-practice.jar:$CP"
2012-01-02 05:32:34 +00:00
for procjar in "lib/core" "lib/pde" "java/lib/tools" "java/lib/rt"
do
CP="$PROCESSING_HOME/$procjar.jar:$CP"
done
test -n "$DEBUG" && echo "DEBUG:CP=$CP"
java -cp "$CP" com.meatballhat.processing.ProcessingRunner "$@"