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

#!/bin/sh
PWD=`pwd`
echo current workdir $PWD
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 $PWD/blackbox
make clean
cd $PWD/pitlane
make clean
cd $PWD/slotUI
rm *.pyc

cd $PWD
rmdir -f dist
mkdir -p $RDIR

cp blackbox $RDIR
cp pitlane $RDIR
cp 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*

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

ls -al

mercurial