mkdist

changeset 130
570d032040ab
parent 129
188ec4899791
child 131
fb998693e82c
equal deleted inserted replaced
129:188ec4899791 130:570d032040ab
1 #!/bin/sh 1 #!/bin/sh
2 PWD=`pwd`
3 echo current workdir $PWD
2 RELEASE=$1 4 RELEASE=$1
3 PWD=`pwd` 5 RNAME="openslot-$RELEASE"
4 R_NAME="openslot-$RELEASE" 6 RDIR="dist/$RNAME"
5 R_DIR="dist/$R_NAME" 7 DAT=`date`
8
9 if (test -z $RELEASE); then
10 echo "RELEASE parameter (e.g. 1.8) missing"
11 exit
12 fi
6 13
7 14
8 cd $PWD/blackbox 15 cd $PWD/blackbox
9 make clean 16 make clean
10 cd $PWD/pitlane 17 cd $PWD/pitlane
12 cd $PWD/slotUI 19 cd $PWD/slotUI
13 rm *.pyc 20 rm *.pyc
14 21
15 cd $PWD 22 cd $PWD
16 rmdir -f dist 23 rmdir -f dist
17 mkdir -p $R_DIR 24 mkdir -p $RDIR
18 25
19 cp blackbox $R_DIR 26 cp blackbox $RDIR
20 cp pitlane $R_DIR 27 cp pitlane $RDIR
21 cp slotUI $R_DIR 28 cp slotUI $RDIR
22 echo -e "OpenSlot.de\nCustom Firmware and hardware mod\n\nPublic release version $RELEASE\n$DAT" > $R_DIR/README 29 echo -e "OpenSlot.de\nCustom Firmware and hardware mod\n\nPublic release version $RELEASE\n$DAT" > $RDIR/README
23 cp LICENSE $R_DIR 30 cp LICENSE $RDIR
24 31
25 cd $PWD/slotUI 32 cd $RDIR/slotUI
26 rm -f quake-sound 33 rm -f quake-sound
34 rm *.log
35 rm *.trk*
27 36
28 cd $PWD/dist 37 cd $PWD/dist
29 tar -cz $R_NAME/* >$R_NAME.tar.gz 38 tar -cz $RNAME/* >$RNAME.tar.gz
30 39
31 ls -al 40 ls -al

mercurial