aboutsummaryrefslogtreecommitdiff
path: root/make-release.sh
blob: a79785a7b414ecf38c34c159c16d3cf2c88bbc35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh

if [ $# -ne 2 ]; then
    echo "Usage: $0 PDUINO_VERSION FIRMATA_VERSION"
    exit
fi

PDUINO_VERSION=$1
FIRMATA_VERSION=$2

PDUINO_DIR=Pduino-${PDUINO_VERSION}
FIRMATA_DIR=Firmata-${FIRMATA_VERSION}

mkdir /tmp/pduino-release
cd /tmp/pduino-release
svn co https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/externals/hardware/arduino $PDUINO_DIR

cd $PDUINO_DIR
/sw/bin/svn2cl
svn co https://firmata.svn.sourceforge.net/svnroot/firmata/arduino/trunk $FIRMATA_DIR

cd $FIRMATA_DIR
/sw/bin/svn2cl
cd ..

#remove cruft
find . -name .DS_Store -delete
find . -name .svn -print0 | xargs -0 rm -r
rm -rf PICduino examples arduino-stress-test.pd

zip -9r ../${FIRMATA_DIR}.zip $FIRMATA_DIR
cd ..
zip -9r ${PDUINO_DIR}.zip $PDUINO_DIR

# add to CVS for my website
cp -a ${FIRMATA_DIR}.zip ${PDUINO_DIR}.zip ~/code/works/pd/
cd ~/code/works/pd
cvs add ${FIRMATA_DIR}.zip ${PDUINO_DIR}.zip

# change the versions in the HTML
sed -i "s|Firmata-[0-9][.0-9A-Za-z_-]*\.zip|${FIRMATA_DIR}.zip|g" objects.html
sed -i "s|Pduino-[0-9][.0-9A-Za-z_-]*\.zip|${PDUINO_DIR}.zip|g" objects.html