Wed, 19 Dec 2012 20:06:00 +0100
distscript fix
129 | 1 | #!/bin/sh |
2 | PWD=`pwd` | |
130 | 3 | echo current workdir $PWD |
4 | RELEASE=$1 | |
5 | RNAME="openslot-$RELEASE" | |
6 | RDIR="dist/$RNAME" | |
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 | ||
15 | cd $PWD/blackbox | |
16 | make clean | |
17 | cd $PWD/pitlane | |
18 | make clean | |
19 | cd $PWD/slotUI | |
20 | rm *.pyc | |
21 | ||
22 | cd $PWD | |
23 | rmdir -f dist | |
130 | 24 | mkdir -p $RDIR |
129 | 25 | |
130 | 26 | cp blackbox $RDIR |
27 | cp pitlane $RDIR | |
28 | cp slotUI $RDIR | |
29 | echo -e "OpenSlot.de\nCustom Firmware and hardware mod\n\nPublic release version $RELEASE\n$DAT" > $RDIR/README | |
30 | cp LICENSE $RDIR | |
129 | 31 | |
130 | 32 | cd $RDIR/slotUI |
129 | 33 | rm -f quake-sound |
130 | 34 | rm *.log |
35 | rm *.trk* | |
129 | 36 | |
37 | cd $PWD/dist | |
130 | 38 | tar -cz $RNAME/* >$RNAME.tar.gz |
129 | 39 | |
40 | ls -al |