mkdist

Wed, 19 Dec 2012 20:16:42 +0100

author
Malte Bayer <mbayer@neo-soft.org>
date
Wed, 19 Dec 2012 20:16:42 +0100
changeset 131
fb998693e82c
parent 130
570d032040ab
child 133
2dedc73bf54e
permissions
-rwxr-xr-x

release prepare

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

mercurial