mkdist

Wed, 19 Dec 2012 19:58:29 +0100

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

dist script added

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 RELEASE=$1
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
3 PWD=`pwd`
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
4 R_NAME="openslot-$RELEASE"
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
5 R_DIR="dist/$R_NAME"
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
6
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
7
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
8 cd $PWD/blackbox
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
9 make clean
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
10 cd $PWD/pitlane
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
11 make clean
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
12 cd $PWD/slotUI
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
13 rm *.pyc
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
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
16 rmdir -f dist
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
17 mkdir -p $R_DIR
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
18
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
19 cp blackbox $R_DIR
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
20 cp pitlane $R_DIR
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
21 cp slotUI $R_DIR
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
22 echo -e "OpenSlot.de\nCustom Firmware and hardware mod\n\nPublic release version $RELEASE\n$DAT" > $R_DIR/README
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
23 cp LICENSE $R_DIR
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
24
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
25 cd $PWD/slotUI
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
26 rm -f quake-sound
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
27
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
28 cd $PWD/dist
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
29 tar -cz $R_NAME/* >$R_NAME.tar.gz
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
30
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
31 ls -al

mercurial