2005-08-25 23:06:28 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
REVISION=`head -c 4 ../../todo.txt`
|
|
|
|
|
2006-12-25 21:58:37 +01:00
|
|
|
rm -rf work
|
|
|
|
|
2005-08-25 23:06:28 +02:00
|
|
|
./make.sh
|
|
|
|
|
|
|
|
echo Creating linux distribution for revision $REVISION...
|
|
|
|
|
2006-12-25 21:58:37 +01:00
|
|
|
rm -rf work/classes
|
2005-08-25 23:06:28 +02:00
|
|
|
|
2006-12-25 21:58:37 +01:00
|
|
|
# remove any old boogers
|
|
|
|
rm -rf arduino
|
|
|
|
rm -rf arduino-*
|
2005-08-25 23:06:28 +02:00
|
|
|
|
2006-12-25 21:58:37 +01:00
|
|
|
mv work arduino
|
2005-08-25 23:06:28 +02:00
|
|
|
|
|
|
|
# remove boogers
|
2006-12-25 21:58:37 +01:00
|
|
|
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 {} ';'
|
2005-08-25 23:06:28 +02:00
|
|
|
|
|
|
|
# clean out the cvs entries
|
2006-12-25 21:58:37 +01:00
|
|
|
find arduino -name ".svn" -exec rm -rf {} ';' 2> /dev/null
|
2005-08-25 23:06:28 +02:00
|
|
|
|
|
|
|
# zip it all up for release
|
|
|
|
echo Creating tarball and finishing...
|
2006-12-25 21:58:37 +01:00
|
|
|
P5=arduino-$REVISION
|
|
|
|
mv arduino $P5
|
2005-08-25 23:06:28 +02:00
|
|
|
|
|
|
|
tar cfz $P5.tgz $P5
|
|
|
|
# nah, keep the new directory around
|
|
|
|
#rm -rf $P5
|
|
|
|
|
|
|
|
#echo Done.
|