mkdist

Wed, 19 Dec 2012 20:17:35 +0100

author
Malte Bayer <mbayer@neo-soft.org>
date
Wed, 19 Dec 2012 20:17:35 +0100
changeset 132
c0a75af22546
parent 131
fb998693e82c
child 133
2dedc73bf54e
permissions
-rwxr-xr-x

Added tag V1.8 for changeset fb998693e82c

#!/bin/sh
BASE=`pwd`
echo current workdir $BASE
RELEASE=$1
RNAME="openslot-$RELEASE"
RDIR="./dist/$RNAME"
DAT=`date`

if (test -z $RELEASE); then
    echo "RELEASE parameter (e.g. 1.8) missing"
    exit
fi


cd $BASE/blackbox
make clean
cd $BASE/pitlane
make clean
cd $BASE/slotUI
rm *.pyc

cd $BASE
rm -rf dist
mkdir -p $RDIR

cp -r blackbox $RDIR
cp -r pitlane $RDIR
cp -r slotUI $RDIR
echo -e "OpenSlot.de\nCustom Firmware and hardware mod\n\nPublic release version $RELEASE\n$DAT" > $RDIR/README
cp LICENSE $RDIR

cd $RDIR/slotUI
rm -f quake-sound
rm *.log
rm *.trk*

echo $BASE
cd $BASE/dist
tar -cz $RNAME/* >$RNAME.tar.gz

ls -al

mercurial