summaryrefslogtreecommitdiff
path: root/branches/historical-pic-firmware/package_release
blob: a1b9c81e169cc1781e923c359045b90329c6fbb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

#init up
VERSION=${1:-`date +%Y%m%d`}
TO_DIR="reprap-firmware-$VERSION"
FILELIST="extruder_0_ extruder_1_ iobox stepmotor stepmotorb stepmotorc stepmotor-small"

#directory structure
mkdir -p "$TO_DIR"

#make the firmware nice
for F in $FILELIST
do
  cp -p build/16f628/$F/$F.hex $TO_DIR
done

#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"