From d9d72cc41796d235317f3a424791ad7ceb62028f Mon Sep 17 00:00:00 2001 From: Cas Cremers Date: Sat, 19 May 2007 18:01:02 +0200 Subject: [PATCH] - Cleanup of zip files. --- dist/gitdist.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/dist/gitdist.sh b/dist/gitdist.sh index d703daa..a5ae60b 100755 --- a/dist/gitdist.sh +++ b/dist/gitdist.sh @@ -13,13 +13,17 @@ TAG="v1.0-beta7.1" DOCDIR=doc/manual MANUAL=scyther-manual.pdf -ZIPNAME=scyther-$ARCH-$TAG.zip DNAM="scyther-$TAG" TMPDIR="/tmp" RESDIR="$TMPDIR/$DNAM" rm -rf $RESDIR +ZIPDIR=$TMPDIR +ZIPNAME=scyther-$ARCH-$TAG.zip + +rm -f $ZIPDIR/$ZIPNAME + cd .. && git-archive --format=tar --prefix=$DNAM/ $TAG | (cd $TMPDIR && tar xf -) ls $RESDIR @@ -44,7 +48,9 @@ CMFLAGS="-D CMAKE_BUILD_TYPE:STRING=Release" cmake $CMFLAGS -D TARGETOS=Win32 . && make #cmake $CMFLAGS . && make -cp scyther-w32.exe $RESDIR/gui/Scyther/Bin +BINDIR=$RESDIR/gui/Scyther/Bin +mkdir $BINDIR +cp scyther-w32.exe $BINDIR # Prepare tag for gui version echo "SCYTHER_GUI_VERSION = \"$TAG\"" >$DESTDIR/Gui/Version.py @@ -54,7 +60,7 @@ WORKNAME="scyther-$TAG" cd $RESDIR mv gui $WORKNAME -zip -r ../$ZIPNAME $WORKNAME +zip -r $ZIPDIR/$ZIPNAME $WORKNAME rm -rf $RESDIR