#!/bin/sh

VERSION=test
LIST=gated-people
date=

if [ $# -ge 1 ]; then
	VERSION=$1
	case ${VERSION} in
		alpha)
			LIST=gated-alpha
			;;
	esac
fi

if [ -f src/VERSION ]; then
	VERSION=`cat src/VERSION`
fi

VERSION_L=`echo ${VERSION} | \
	sed -e 's/^R//' -e 's/_/./g' -e 's/Alpha./ Alpha /' -e 's/Beta./ Beta /'`

if [ $# -ge 2 ]; then
	date=`date +%d%h%y`
	echo LIST=\"${LIST}\" VERSION=\"${VERSION}-${date}\" VERSION_L=\"${VERSION_L} [${date}]\"
else
	echo LIST=\"${LIST}\" VERSION=\"${VERSION}\" VERSION_L=\"${VERSION_L}\"
fi
