Commit 0e93db17 authored by Attila Lendvai's avatar Attila Lendvai
Browse files

Added release.sh

darcs-hash:2e62363caa481a6a036357e1c806c6561f6677e8
parent 5ce1d9d2
#!/bin/sh
VERSION=$1
ARCHIVE_NAME=iterate-"$VERSION".tar.gz
ARCHIVE_PATH="/project/iterate/public_html/releases"
ARCHIVE_FULLNAME="$ARCHIVE_PATH/$ARCHIVE_NAME"
if [ -e "$ARCHIVE_FULLNAME" ]; then
echo "$ARCHIVE_FULLNAME already exists"
exit -1
fi
echo "Don't forget to tag the darcs repo! Creating release $ARCHIVE_FULLNAME, press enter to continue..."
read
cd /project/iterate/darcs
cp -r iterate iterate-$VERSION
tar --exclude="iterate*/_darcs*" -zvcf "$ARCHIVE_FULLNAME" iterate-$VERSION
rm -rf iterate-$VERSION
cd "$ARCHIVE_PATH"
gpg -b -a "$ARCHIVE_NAME"
ln -fs "$ARCHIVE_NAME" iterate-current.tar.gz
ln -fs "$ARCHIVE_NAME".asc iterate-current.tar.gz.asc
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment