mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-19 13:54:23 +01:00
Removing old build scripts.
This commit is contained in:
parent
e5b24cc48b
commit
ed647576c6
@ -1,91 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
#REVISION=`head -c 4 ../../todo.txt`
|
||||
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
|
||||
|
||||
ARCH=`uname -m`
|
||||
if [ $ARCH != "i686" ]
|
||||
then
|
||||
echo At present, the Linux distribution can only be built on i686 \(32-bit\).
|
||||
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 ../../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/
|
||||
|
||||
cp -r ../../hardware arduino/
|
||||
cp -r ../../libraries arduino/
|
||||
|
||||
cp -r dist/tools arduino/hardware
|
||||
cp dist/lib/librxtxSerial.so arduino/lib
|
||||
|
||||
if [ $1 ]
|
||||
then
|
||||
# write the release version number into the output directory
|
||||
echo $1 > arduino/lib/version.txt
|
||||
fi
|
||||
|
||||
echo Copying examples...
|
||||
cp -r ../shared/examples arduino/
|
||||
|
||||
echo Extracting reference...
|
||||
unzip -q -d arduino/ ../shared/reference.zip
|
||||
|
||||
# add java (jre) files
|
||||
#tar --extract --file=jre.tgz --ungzip --directory=arduino
|
||||
|
||||
# grab pde.jar and export from the working dir
|
||||
cp work/lib/pde.jar arduino/lib/
|
||||
cp work/lib/core.jar arduino/lib/
|
||||
|
||||
# get platform-specific goodies from the dist dir
|
||||
install -m 755 dist/arduino arduino/arduino
|
||||
|
||||
# make sure notes.txt is unix LFs
|
||||
# the 2> is because the app is a little chatty
|
||||
dos2unix arduino/readme.txt 2> /dev/null
|
||||
dos2unix arduino/lib/preferences.txt 2> /dev/null
|
||||
|
||||
# remove boogers
|
||||
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 {} ';'
|
||||
|
||||
# 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 Creating tarball and finishing...
|
||||
P5=arduino-$RELEASE
|
||||
mv arduino $P5
|
||||
|
||||
tar cfz $P5.tgz $P5
|
||||
# nah, keep the new directory around
|
||||
#rm -rf $P5
|
||||
|
||||
echo Done.
|
@ -1,114 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
|
||||
### -- SETUP WORK DIR -------------------------------------------
|
||||
|
||||
if test -d work
|
||||
then
|
||||
BUILD_PREPROC=false
|
||||
else
|
||||
echo Setting up directories to build for Linux...
|
||||
BUILD_PREPROC=true
|
||||
|
||||
mkdir work
|
||||
cp -r ../shared/lib work/
|
||||
cp -r ../../libraries work/
|
||||
cp -r ../shared/tools work/
|
||||
|
||||
cp -r ../../hardware 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
|
||||
|
||||
cp -r dist/tools work/hardware/
|
||||
cp dist/lib/librxtxSerial.so work/lib/
|
||||
|
||||
install -m 755 dist/arduino work/arduino
|
||||
|
||||
ARCH=`uname -m`
|
||||
if [ $ARCH = "i686" ]
|
||||
then
|
||||
echo Extracting JRE...
|
||||
tar --extract --file=jre.tgz --ungzip --directory=work
|
||||
else
|
||||
# echo This is not my beautiful house.
|
||||
# if [ $ARCH = "x86_64" ]
|
||||
# then
|
||||
# echo You gots the 64.
|
||||
# fi
|
||||
echo "
|
||||
The Java bundle that is included with Processing supports only i686 by default.
|
||||
To build the code, you will need to install the Java 1.5.0_15 JDK (not a JRE,
|
||||
and not any other version), and create a symlink to the directory where it is
|
||||
installed. Create the symlink in the \"work\" directory, and named it \"java\":
|
||||
ln -s /path/to/jdk1.5.0_15 `pwd`/work/java"
|
||||
exit
|
||||
fi
|
||||
fi
|
||||
|
||||
cd ../..
|
||||
|
||||
|
||||
### -- BUILD CORE ----------------------------------------------
|
||||
|
||||
|
||||
echo Building processing.core
|
||||
|
||||
cd core
|
||||
|
||||
#CLASSPATH="../build/linux/work/java/lib/rt.jar"
|
||||
#export CLASSPATH
|
||||
|
||||
perl preproc.pl
|
||||
mkdir -p bin
|
||||
../build/linux/work/java/bin/java \
|
||||
-cp ../build/linux/work/java/lib/tools.jar \
|
||||
com.sun.tools.javac.Main \
|
||||
-d bin -source 1.5 -target 1.5 \
|
||||
src/processing/core/*.java src/processing/xml/*.java
|
||||
#find bin -name "*~" -exec rm -f {} ';'
|
||||
rm -f ../build/linux/work/lib/core.jar
|
||||
cd bin && zip -rq ../../build/linux/work/lib/core.jar \
|
||||
processing/core/*.class processing/xml/*.class && cd ..
|
||||
|
||||
# back to base processing dir
|
||||
cd ..
|
||||
|
||||
|
||||
### -- BUILD PDE ------------------------------------------------
|
||||
|
||||
cd app
|
||||
|
||||
rm -rf ../build/linux/work/classes
|
||||
mkdir ../build/linux/work/classes
|
||||
|
||||
../build/linux/work/java/bin/java \
|
||||
-cp ../build/linux/work/java/lib/tools.jar \
|
||||
com.sun.tools.javac.Main \
|
||||
-source 1.5 -target 1.5 \
|
||||
-classpath ../build/linux/work/lib/core.jar:../build/linux/work/lib/antlr.jar:../build/linux/work/lib/ecj.jar:../build/linux/work/lib/jna.jar:../build/linux/work/lib/oro.jar:../build/linux/work/lib/RXTXcomm.jar:../build/linux/work/java/lib/tools.jar \
|
||||
-d ../build/linux/work/classes \
|
||||
src/processing/app/*.java \
|
||||
src/processing/app/debug/*.java \
|
||||
src/processing/app/linux/*.java \
|
||||
src/processing/app/preproc/*.java \
|
||||
src/processing/app/syntax/*.java \
|
||||
src/processing/app/tools/*.java
|
||||
|
||||
cd ../build/linux/work/classes
|
||||
rm -f ../lib/pde.jar
|
||||
zip -0rq ../lib/pde.jar .
|
||||
cd ../../../..
|
||||
|
||||
|
||||
echo
|
||||
echo Done.
|
@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd work && ./arduino && cd ..
|
Loading…
x
Reference in New Issue
Block a user