summaryrefslogtreecommitdiff
path: root/trunk/darwin/firmware/PIC/package_release
blob: bb11e58881916a32dadaabc5eb9a2e8d06d335c8 (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
#!/bin/bash

#init up
VERSION=${1:-`date +%Y%m%d`}
TO_DIR="reprap-firmware-$VERSION"

#directory structure
mkdir -p "$TO_DIR"
mkdir -p "$TO_DIR/firmware"

#make our firmware
make clean && make
FILELIST=`ls devices/*/*.hex`

#make the firmware nice
for F in $FILELIST
do
	NAME=`basename $F`
	cp $F "$TO_DIR/firmware/$NAME"
done

cp AUTHORS "$TO_DIR/"
cp ChangeLog "$TO_DIR/"
cp COPYING "$TO_DIR/"
cp INSTALL "$TO_DIR/"
cp LICENCE "$TO_DIR/"
cp NEWS "$TO_DIR/"
cp README "$TO_DIR/"

#export our source.
svn export ../firmware "$TO_DIR/src"

#create our archive
zip -qr "$TO_DIR.zip" "$TO_DIR"

#cleanup
rm -rf "$TO_DIR"

echo "RepRap Firmware Release v$VERSION created as ${TO_DIR}.zip"