mkdist

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

mercurial