- Updated distro script.

This commit is contained in:
ccremers 2006-08-11 18:04:36 +00:00
parent fe18bf0fa1
commit df8a99f823

29
dist/makedist.sh vendored
View File

@ -9,28 +9,27 @@
# A distribution is a directory # A distribution is a directory
# #
# scyther/ # scyther/
# - readme.txt file with some indications from this # - everything from ../gui
# directory.
# demo/
# - demo files
# SPORE/ # SPORE/
# - spore files # - spore files
# scyther/
# - scyther executable
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Parameters # Parameters
ARCHIVE=scyther.tgz RELEASE="scyther-1.0-beta4"
ARCHIVE="$RELEASE.tgz"
ZIPPED="$RELEASE.zip"
# Creates a temporary subdirectory here. # Creates a temporary subdirectory here.
TMPDIR=/tmp/scytherdist TMPDIR=/tmp/scytherdist
WORKNAME=scyther WORKNAME=scyther
# Repository # Repository
SVNROOT=https://svn.win.tue.nl/repos/ecss/trunk/protocols/spdl PROTROOT=https://svn.win.tue.nl/repos/ecss/trunk/protocols/spdl
SVNROOT=https://svn.win.tue.nl/repos/scyther/trunk
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
@ -39,6 +38,7 @@ SVNROOT=https://svn.win.tue.nl/repos/ecss/trunk/protocols/spdl
WORKDIR=$TMPDIR/$WORKNAME WORKDIR=$TMPDIR/$WORKNAME
CURDIR=$PWD CURDIR=$PWD
DEST=$PWD/$ARCHIVE DEST=$PWD/$ARCHIVE
ZIPDEST=$PWD/$ZIPPED
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
@ -46,24 +46,18 @@ DEST=$PWD/$ARCHIVE
# Remove old remnants and create a new directory # Remove old remnants and create a new directory
rm -f $DEST rm -f $DEST
rm -f $ZIPDEST
rm -rf $TMPDIR rm -rf $TMPDIR
mkdir $TMPDIR mkdir $TMPDIR
# Create scyther/
mkdir $WORKDIR
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
# Collect required data and set up # Collect required data and set up
# Fill # Fill
svn export $SVNROOT/SPORE $WORKDIR/SPORE svn export $SVNROOT/gui $WORKDIR
svn export $SVNROOT/demo $WORKDIR/demo svn export $PROTROOT/SPORE $WORKDIR/SPORE
svn export $SVNROOT/scyther $WORKDIR/bin
# Readme
cp readme.txt $WORKDIR
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #
@ -72,6 +66,7 @@ cp readme.txt $WORKDIR
# Compress # Compress
cd $TMPDIR cd $TMPDIR
tar zcvf $DEST $WORKNAME tar zcvf $DEST $WORKNAME
zip -r $ZIPDEST $WORKNAME
# Remove garbage # Remove garbage
rm -rf $TMPDIR rm -rf $TMPDIR