diff -r 570d032040ab -r fb998693e82c mkdist --- a/mkdist Wed Dec 19 20:06:00 2012 +0100 +++ b/mkdist Wed Dec 19 20:16:42 2012 +0100 @@ -1,9 +1,9 @@ #!/bin/sh -PWD=`pwd` -echo current workdir $PWD +BASE=`pwd` +echo current workdir $BASE RELEASE=$1 RNAME="openslot-$RELEASE" -RDIR="dist/$RNAME" +RDIR="./dist/$RNAME" DAT=`date` if (test -z $RELEASE); then @@ -12,20 +12,20 @@ fi -cd $PWD/blackbox +cd $BASE/blackbox make clean -cd $PWD/pitlane +cd $BASE/pitlane make clean -cd $PWD/slotUI +cd $BASE/slotUI rm *.pyc -cd $PWD -rmdir -f dist +cd $BASE +rm -rf dist mkdir -p $RDIR -cp blackbox $RDIR -cp pitlane $RDIR -cp slotUI $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 @@ -34,7 +34,8 @@ rm *.log rm *.trk* -cd $PWD/dist +echo $BASE +cd $BASE/dist tar -cz $RNAME/* >$RNAME.tar.gz ls -al