diff -r 188ec4899791 -r 570d032040ab mkdist --- a/mkdist Wed Dec 19 19:58:29 2012 +0100 +++ b/mkdist Wed Dec 19 20:06:00 2012 +0100 @@ -1,8 +1,15 @@ #!/bin/sh -RELEASE=$1 PWD=`pwd` -R_NAME="openslot-$RELEASE" -R_DIR="dist/$R_NAME" +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 @@ -14,18 +21,20 @@ cd $PWD rmdir -f dist -mkdir -p $R_DIR +mkdir -p $RDIR -cp blackbox $R_DIR -cp pitlane $R_DIR -cp slotUI $R_DIR -echo -e "OpenSlot.de\nCustom Firmware and hardware mod\n\nPublic release version $RELEASE\n$DAT" > $R_DIR/README -cp LICENSE $R_DIR +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 $PWD/slotUI +cd $RDIR/slotUI rm -f quake-sound +rm *.log +rm *.trk* cd $PWD/dist -tar -cz $R_NAME/* >$R_NAME.tar.gz +tar -cz $RNAME/* >$RNAME.tar.gz ls -al