diff --git a/build/windows/dist.sh b/build/windows/dist.sh deleted file mode 100755 index c4da055f4..000000000 --- a/build/windows/dist.sh +++ /dev/null @@ -1,115 +0,0 @@ -#!/bin/sh - -REVISION=`head -1 ../../todo.txt | awk '{print $1}'` - -if [ $1 ] -then - RELEASE=$1 - echo Creating Arduino release $RELEASE... -else - RELEASE=$REVISION - echo Creating Arduino distribution for revision $REVISION... -fi - -# check to see if the version number in the app is correct -# so that mikkel doesn't kick my ass -VERSIONED=`cat ../../app/src/processing/app/Base.java | grep $REVISION` -if [ -z "$VERSIONED" ] -then - echo Fix the revision number in Base.java - exit -fi - -./make.sh - -# remove any old boogers -rm -rf arduino -rm -rf arduino-* - -mkdir arduino -cp -r ../shared/lib arduino/ -cp -r ../shared/tools arduino/ - -cp dist/*.dll arduino/ -cp -r dist/drivers arduino/ - -cp -r ../../hardware arduino/ -cp -r ../../libraries arduino/ - - -if [ $1 ] -then - # write the release version number into the output directory - echo $1 > arduino/lib/version.txt -fi - -cp ../../app/lib/antlr.jar arduino/lib/ -cp ../../app/lib/ecj.jar arduino/lib/ -cp ../../app/lib/jna.jar arduino/lib/ -cp ../../app/lib/oro.jar arduino/lib/ -cp ../../app/lib/RXTXcomm.jar arduino/lib/ - -cp ../../readme.txt arduino/ - -echo Copying examples... -cp -r ../shared/examples arduino/ - -echo Extracting reference... -unzip -q -d arduino/ ../shared/reference.zip - -unzip -q -d arduino/hardware avr_tools.zip - -# add java (jre) files -unzip -q -d arduino jre.zip - -# get platform-specific goodies from the dist dir -cp launcher/arduino.exe arduino/ - -# grab pde.jar and export from the working dir -cp work/lib/pde.jar arduino/lib/ -cp work/lib/core.jar arduino/lib/ - -# convert revisions.txt to windows LFs -# the 2> is because the app is a little chatty -unix2dos arduino/readme.txt 2> /dev/null -unix2dos arduino/lib/preferences.txt 2> /dev/null -unix2dos arduino/lib/keywords.txt 2> /dev/null - -# remove boogers -find arduino -name "*.bak" -exec rm -f {} ';' -find arduino -name "*~" -exec rm -f {} ';' -find arduino -name ".DS_Store" -exec rm -f {} ';' -find arduino -name "._*" -exec rm -f {} ';' -find arduino -name "Thumbs.db" -exec rm -f {} ';' - -# chmod +x the crew -find arduino -name "*.html" -exec chmod +x {} ';' -find arduino -name "*.dll" -exec chmod +x {} ';' -find arduino -name "*.exe" -exec chmod +x {} ';' -find arduino -name "*.html" -exec chmod +x {} ';' - -# clean out the cvs entries -find arduino -name "CVS" -exec rm -rf {} ';' 2> /dev/null -find arduino -name ".cvsignore" -exec rm -rf {} ';' -find arduino -name ".svn" -exec rm -rf {} ';' 2> /dev/null - -# zip it all up for release -echo Packaging standard release... -echo -P5=arduino-$RELEASE -mv arduino $P5 -zip -rq $P5.zip $P5 -# nah, keep the new directory around -#rm -rf $P5 - -# zip up another for experts -#echo Expert release is disabled until further notice. -echo Packaging expert release... -echo -cp -a $P5 $P5-expert -# remove enormous java runtime -rm -rf $P5-expert/java -zip -rq $P5-expert.zip $P5-expert - -echo Done. - diff --git a/build/windows/make.sh b/build/windows/make.sh deleted file mode 100755 index 628e8ccf0..000000000 --- a/build/windows/make.sh +++ /dev/null @@ -1,125 +0,0 @@ -#!/bin/sh - - -### -- SETUP WORK DIR ------------------------------------------- - -if test -d work -then - BUILD_PREPROC=false -else - echo Setting up directories to build P5... - BUILD_PREPROC=true - - mkdir work - cp -r ../shared/lib work/ - cp -r ../shared/tools work/ - - cp dist/*.dll work/ - cp -r dist/drivers work/ - - cp -r ../../hardware work/ - cp -r ../../libraries work/ - - cp ../../app/lib/antlr.jar work/lib/ - cp ../../app/lib/ecj.jar work/lib/ - cp ../../app/lib/jna.jar work/lib/ - cp ../../app/lib/oro.jar work/lib/ - cp ../../app/lib/RXTXcomm.jar work/lib/ - - echo Copying examples... - cp -r ../shared/examples work/ - - echo Extracting reference... - unzip -q -d work/ ../shared/reference.zip - - echo Extracting avr tools... - unzip -q -d work/hardware/ avr_tools.zip - - echo Extracting enormous JRE... - unzip -q -d work/ jre.zip - - # build the processing.exe bundle - # there are a few hacks in the source to launch4j-3.0.1 - # to build them, use the following: - # cd head_src/gui_head && make -f Makefile.win - cd launcher - ./launch4j/launch4jc.exe config.xml - cp arduino.exe ../work/ - cd .. - - # chmod +x the crew - # cygwin requires this because of unknown weirdness - # it was not formerly this anal retentive - # with the html, it's necessary on windows for launching reference - # from shell/command prompt, which is done internally to view reference - find work -name "*.html" -exec chmod +x {} ';' - find work -name "*.dll" -exec chmod +x {} ';' - find work -name "*.exe" -exec chmod +x {} ';' - find work -name "*.html" -exec chmod +x {} ';' -fi - -cd ../.. - - -### -- BUILD CORE ---------------------------------------------- - -echo Building processing.core... - -cd core - -#CLASSPATH="..\\build\\windows\\work\\java\\lib\\rt.jar;..\\build\\windows\\work\\java\\lib\\tools.jar" -#CLASSPATH="..\\build\\windows\\work\\java\\lib\\tools.jar" -#export CLASSPATH - -perl preproc.pl - -mkdir -p bin -../build/windows/work/java/bin/java \ - -classpath "..\\build\\windows\\work\\java\\lib\\tools.jar" \ - com.sun.tools.javac.Main \ - -source 1.5 -target 1.5 -d bin \ - src/processing/core/*.java src/processing/xml/*.java - -rm -f ../build/windows/work/lib/core.jar - -# package this folder into core.jar -cd bin && zip -rq ../../build/windows/work/lib/core.jar \ - processing/core/*.class processing/xml/*.class && cd .. - -# back to base processing dir -cd .. - - - -### -- BUILD PDE ------------------------------------------------ - -echo Building the PDE... - -cd app - -# has to be present, otherwise javac will complain of file writing errors -rm -rf ../build/windows/work/classes -mkdir ../build/windows/work/classes - -../build/windows/work/java/bin/java \ - -classpath "..\\build\\windows\\work\\java\\lib\\tools.jar" \ - com.sun.tools.javac.Main \ - -source 1.5 -target 1.5 \ - -classpath "..\\build\\windows\\work\\lib\\core.jar;..\\build\\windows\\work\\lib\antlr.jar;..\\build\\windows\\work\\lib\\ecj.jar;..\\build\\windows\\work\\lib\\jna.jar;..\\build\\windows\\work\\lib\\oro.jar;..\\build\\windows\\work\\lib\\RXTXcomm.jar;..\\build\\windows\\work\\java\\lib\\tools.jar" \ - -d ..\\build\\windows\\work\\classes \ - src/processing/app/*.java \ - src/processing/app/debug/*.java \ - src/processing/app/syntax/*.java \ - src/processing/app/preproc/*.java \ - src/processing/app/tools/*.java \ - src/processing/app/windows/*.java - -cd ../build/windows/work/classes -rm -f ../lib/pde.jar -zip -rq ../lib/pde.jar . -cd ../.. - - -echo -echo Done. - diff --git a/build/windows/run.sh b/build/windows/run.sh deleted file mode 100644 index a86f10442..000000000 --- a/build/windows/run.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -CLASSPATH=lib\\pde.jar\;lib\\core.jar\;lib\\jna.jar\;lib\\ecj.jar\;lib\\antlr.jar\;lib\\oro.jar\;lib\\RXTXcomm.jar\;java\\lib\\tools.jar -export CLASSPATH - -cd work && ./java/bin/java processing.app.Base diff --git a/build/windows/srun.sh b/build/windows/srun.sh deleted file mode 100755 index d81943ba9..000000000 --- a/build/windows/srun.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -QT_JAVA_PATH="$WINDIR\\system32\\QTJava.zip" -if test -f "${QT_JAVA_PATH}" -then - #echo "Found Quicktime at $QT_JAVA_PATH" -else - QT_JAVA_PATH="$WINDIR\\system\\QTJava.zip" - if test -f "${QT_JAVA_PATH}" - echo "could not find qtjava.zip in either" - echo "${WINDIR}\\system32\\qtjava.zip or" - echo "${WINDIR}\\system\\qtjava.zip" - echo "quicktime for java must be installed before building." - exit 1; - then - #echo "Found Quicktime at $QT_JAVA_PATH" - else - fi -fi - -CLASSPATH=\"java\\lib\\rt.jar\;lib\;lib\\build\;lib\\pde.jar\;lib\\kjc.jar\;lib\\antlr.jar\;lib\\oro.jar\;lib\\comm.jar\;lib\\RXTXcomm.jar\;${QT_JAVA_PATH}\" - -export CLASSPATH - -cd work && ./java/bin/java -Djava.compiler=NONE PdeBase