scyther/dist/releasescript
Cas Cremers 057909d0c5 Improved build scripts.
The scripts now have more sensible names, and the code is better factored.
2007-05-23 18:03:48 +02:00

44 lines
648 B
Bash
Executable File

#!/bin/sh
BUILDER=./build-arch-tag
# Check whether the tag exists
TAG=$1
if [ "x$TAG" != "x" ]
then
FOUND=`git-tag -l $TAG`
if [ "x$TAG" = "x$FOUND" ]
then
echo "Tag $TAG found."
else
TAG=""
fi
fi
if [ "x$TAG" = "x" ]
then
echo
echo "Scyther binary distribution generator."
echo
echo " Usage: $0 <tag>"
echo
echo "Don't know tag $TAG, please select one from below:"
git-tag -l
exit
fi
# Determine system and build accordingly
OS=`uname -s`
if [ "x$OS" = "xDarwin" ]
then
$BUILDER mac $TAG
elif [ "x$OS" = "xLinux" ]
then
$BUILDER linux $TAG
$BUILDER w32 $TAG
else
echo "Don't know architecture $OS, where am I?"
exit
fi