Sun, 22 Dec 2013 02:42:03 +0100
bin jetzt muede und mach dicht hier...
129 | 1 | #!/bin/sh |
131 | 2 | BASE=`pwd` |
3 | echo current workdir $BASE | |
130 | 4 | RELEASE=$1 |
5 | RNAME="openslot-$RELEASE" | |
131 | 6 | RDIR="./dist/$RNAME" |
130 | 7 | DAT=`date` |
8 | ||
9 | if (test -z $RELEASE); then | |
10 | echo "RELEASE parameter (e.g. 1.8) missing" | |
11 | exit | |
12 | fi | |
129 | 13 | |
14 | ||
131 | 15 | cd $BASE/blackbox |
129 | 16 | make clean |
131 | 17 | cd $BASE/pitlane |
129 | 18 | make clean |
131 | 19 | cd $BASE/slotUI |
129 | 20 | rm *.pyc |
21 | ||
131 | 22 | cd $BASE |
23 | rm -rf dist | |
130 | 24 | mkdir -p $RDIR |
129 | 25 | |
131 | 26 | cp -r blackbox $RDIR |
27 | cp -r pitlane $RDIR | |
28 | cp -r slotUI $RDIR | |
133 | 29 | echo "OpenSlot.de\nCustom Firmware and hardware mod\n\nPublic release version $RELEASE\n$DAT" > $RDIR/README |
130 | 30 | cp LICENSE $RDIR |
129 | 31 | |
134 | 32 | cd $BASE/$RDIR/pitlane |
33 | rm main_backup.hex | |
34 | ||
35 | ||
36 | cd $BASE/$RDIR/slotUI | |
37 | rm -rf quake-sound/* | |
130 | 38 | rm *.log |
39 | rm *.trk* | |
129 | 40 | |
131 | 41 | echo $BASE |
42 | cd $BASE/dist | |
130 | 43 | tar -cz $RNAME/* >$RNAME.tar.gz |
129 | 44 | |
45 | ls -al |