mkdist

Fri, 27 Dec 2013 11:43:40 +0100

author
mbayer
date
Fri, 27 Dec 2013 11:43:40 +0100
changeset 153
80d869ac365b
parent 134
4ec62b8be28c
permissions
-rwxr-xr-x

added accel and brake parameters to car firmware

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
133
2dedc73bf54e release
Malte Bayer <mbayer@neo-soft.org>
parents: 131
diff changeset
29 echo "OpenSlot.de\nCustom Firmware and hardware mod\n\nPublic release version $RELEASE\n$DAT" > $RDIR/README
130
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
134
4ec62b8be28c release readme change
Malte Bayer <mbayer@neo-soft.org>
parents: 133
diff changeset
32 cd $BASE/$RDIR/pitlane
4ec62b8be28c release readme change
Malte Bayer <mbayer@neo-soft.org>
parents: 133
diff changeset
33 rm main_backup.hex
4ec62b8be28c release readme change
Malte Bayer <mbayer@neo-soft.org>
parents: 133
diff changeset
34
4ec62b8be28c release readme change
Malte Bayer <mbayer@neo-soft.org>
parents: 133
diff changeset
35
4ec62b8be28c release readme change
Malte Bayer <mbayer@neo-soft.org>
parents: 133
diff changeset
36 cd $BASE/$RDIR/slotUI
4ec62b8be28c release readme change
Malte Bayer <mbayer@neo-soft.org>
parents: 133
diff changeset
37 rm -rf quake-sound/*
130
570d032040ab distscript fix
Malte Bayer <mbayer@neo-soft.org>
parents: 129
diff changeset
38 rm *.log
570d032040ab distscript fix
Malte Bayer <mbayer@neo-soft.org>
parents: 129
diff changeset
39 rm *.trk*
129
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
40
131
fb998693e82c release prepare
Malte Bayer <mbayer@neo-soft.org>
parents: 130
diff changeset
41 echo $BASE
fb998693e82c release prepare
Malte Bayer <mbayer@neo-soft.org>
parents: 130
diff changeset
42 cd $BASE/dist
130
570d032040ab distscript fix
Malte Bayer <mbayer@neo-soft.org>
parents: 129
diff changeset
43 tar -cz $RNAME/* >$RNAME.tar.gz
129
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
44
188ec4899791 dist script added
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
45 ls -al

mercurial