box-o-sand/practicing-processing/bin/processing-commander
Dan Buch 1037e390b5 Add 'practicing-processing/' from commit 'a863dc99fc5e1967264c286f2adf2b27b50585ef'
git-subtree-dir: practicing-processing
git-subtree-mainline: d40d570281
git-subtree-split: a863dc99fc
2013-01-09 23:49:00 -05:00

21 lines
508 B
Bash
Executable File

#!/bin/bash
set -e
TOP="$(dirname $(dirname $(readlink -f -- "$0")))"
$TOP/bin/prochome-check >/dev/null
if [ ! -f "$TOP/lib/preferences.txt" ]; then
cp "$TOP/lib/preferences.txt.stub" "$TOP/lib/preferences.txt"
fi
CP="$CLASSPATH"
CP="$TOP/lib/mbh-processing-practice.jar:$CP"
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 "$@"