mkdist

Wed, 19 Dec 2012 20:06:00 +0100

author
Malte Bayer <mbayer@neo-soft.org>
date
Wed, 19 Dec 2012 20:06:00 +0100
changeset 130
570d032040ab
parent 129
188ec4899791
child 131
fb998693e82c
permissions
-rwxr-xr-x

distscript fix

129
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
1 #!/bin/sh
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
2 PWD=`pwd`
130
570d032040ab distscript fix
Malte Bayer <mbayer@neo-soft.org>
parents: 129
diff changeset
3 echo current workdir $PWD
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"
570d032040ab distscript fix
Malte Bayer <mbayer@neo-soft.org>
parents: 129
diff changeset
6 RDIR="dist/$RNAME"
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
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
15 cd $PWD/blackbox
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
16 make clean
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
17 cd $PWD/pitlane
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
18 make clean
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
19 cd $PWD/slotUI
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
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
22 cd $PWD
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
23 rmdir -f 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
130
570d032040ab distscript fix
Malte Bayer <mbayer@neo-soft.org>
parents: 129
diff changeset
26 cp blackbox $RDIR
570d032040ab distscript fix
Malte Bayer <mbayer@neo-soft.org>
parents: 129
diff changeset
27 cp pitlane $RDIR
570d032040ab distscript fix
Malte Bayer <mbayer@neo-soft.org>
parents: 129
diff changeset
28 cp slotUI $RDIR
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
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
37 cd $PWD/dist
130
570d032040ab distscript fix
Malte Bayer <mbayer@neo-soft.org>
parents: 129
diff changeset
38 tar -cz $RNAME/* >$RNAME.tar.gz
129
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
39
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
40 ls -al

mercurial