mkdist

Sun, 22 Dec 2013 01:50:59 +0100

author
Malte Bayer <mbayer@neo-soft.org>
date
Sun, 22 Dec 2013 01:50:59 +0100
changeset 149
1c3425af9aa0
parent 134
4ec62b8be28c
permissions
-rwxr-xr-x

car firmware suspended, avr chip not responding after fuse error (note to self, never program an avr when powered via the SCK line :-)

#!/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 "OpenSlot.de\nCustom Firmware and hardware mod\n\nPublic release version $RELEASE\n$DAT" > $RDIR/README
cp LICENSE $RDIR

cd $BASE/$RDIR/pitlane
rm main_backup.hex


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

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

ls -al

mercurial