Add 'practicing-processing/' from commit 'a863dc99fc5e1967264c286f2adf2b27b50585ef'
git-subtree-dir: practicing-processing git-subtree-mainline:d40d570281
git-subtree-split:a863dc99fc
This commit is contained in:
20
practicing-processing/bin/processing-commander
Executable file
20
practicing-processing/bin/processing-commander
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/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 "$@"
|
13
practicing-processing/bin/prochome-check
Executable file
13
practicing-processing/bin/prochome-check
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z "$PROCESSING_HOME" ]; then
|
||||
cat >&2 <<EOM
|
||||
----------------------------------------------
|
||||
ERROR: You must define "\$PROCESSING_HOME"
|
||||
----------------------------------------------
|
||||
EOM
|
||||
exit 1
|
||||
else
|
||||
echo "Looks like PROCESSING_HOME is set to \"$PROCESSING_HOME\"."
|
||||
exit 0
|
||||
fi
|
Reference in New Issue
Block a user