Minor cleanup, mostly...

This commit is contained in:
Dan Buch 2012-01-02 00:52:00 -05:00
parent 3b82919d3e
commit 04e8529e41
5 changed files with 80 additions and 4 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
*.class *.class
lib/preferences.txt

View File

@ -1,8 +1,16 @@
#!/bin/bash #!/bin/bash
set -e
TOP="$(dirname $(dirname $(readlink -f -- "$0")))" 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="$CLASSPATH"
CP="$TOP/lib/$(uname -a)/mbh-processing-practice.jar:$CP" CP="$TOP/lib/$(uname -m)/mbh-processing-practice.jar:$CP"
for procjar in "lib/core" "lib/pde" "java/lib/tools" "java/lib/rt" for procjar in "lib/core" "lib/pde" "java/lib/tools" "java/lib/rt"
do do
CP="$PROCESSING_HOME/$procjar.jar:$CP" CP="$PROCESSING_HOME/$procjar.jar:$CP"

View File

@ -2,9 +2,9 @@
if [ -z "$PROCESSING_HOME" ]; then if [ -z "$PROCESSING_HOME" ]; then
cat >&2 <<EOM cat >&2 <<EOM
---------------------------------------------------------------------------- ----------------------------------------------
ERROR: You must define "\$PROCESSING_HOME" for the ant build to succeed. ERROR: You must define "\$PROCESSING_HOME"
---------------------------------------------------------------------------- ----------------------------------------------
EOM EOM
exit 1 exit 1
else else

67
lib/preferences.txt.stub Normal file
View File

@ -0,0 +1,67 @@
console.auto_clear=true
console.font.macosx=Monaco,plain,10
console.font=Monospaced,plain,11
console.length=500
console.lines=4
contribution.backup.on_install=true
contribution.backup.on_remove=true
editor.antialias.linux=true
editor.antialias=true
editor.divider.size=0
editor.divider.size.windows=2
editor.external=false
editor.font.macosx=Monaco,plain,10
editor.font=Monospaced,plain,12
editor.indent=true
editor.keys.alternative_cut_copy_paste.macosx=false
editor.keys.alternative_cut_copy_paste=true
editor.keys.home_and_end_travel_far=false
editor.keys.home_and_end_travel_far.macosx=true
editor.keys.home_and_end_travel_smart=true
editor.keys.shift_backspace_is_delete=true
editor.tabs.expand=true
editor.tabs.size=2
editor.untitled.prefix=sketch_
editor.window.height.default=600
editor.window.height.min=500
editor.window.height.min.macosx=450
editor.window.height.min.windows=530
editor.window.width.default=500
editor.window.width.min=400
export.applet.separate_jar_files=false
export.application.fullscreen=false
export.application.platform.linux=true
export.application.platform.macosx=true
export.application.platform=true
export.application.platform.windows=true
export.application.stop=true
export.delete_target_folder=true
instance_server.key=0.3877576097235004
instance_server.port=38596
last.sketch.count=0
last.sketch.restore=true
launcher=xdg-open
platform.auto_file_type_associations=true
preproc.color_datatype=true
preproc.enhanced_casting=true
preproc.imports.list=java.applet.*,java.awt.Dimension,java.awt.Frame,java.awt.event.MouseEvent,java.awt.event.KeyEvent,java.awt.event.FocusEvent,java.awt.Image,java.io.*,java.net.*,java.text.*,java.util.*,java.util.zip.*,java.util.regex.*
preproc.output_parse_tree=false
preproc.save_build_files=false
preproc.substitute_floats=true
preproc.substitute_unicode=true
preproc.web_colors=true
run.display=1
run.options=
run.options.bits.macosx=32
run.options.memory=false
run.options.memory.initial=64
run.options.memory.maximum=256
run.present.bgcolor=#666666
run.present.exclusive=false
run.present.exclusive.macosx=true
run.present.stop.color=#cccccc
run.window.bgcolor=#DFDFDF
sketchbook.path=/home/me/repos/practicing-processing.git/sketchbook
update.check=true
update.id=-5920873896785929326
update.last=1325434363680