tint2/make_release.sh
Andreas.Fink85 d103fe00d7 *add* adding a dummy configure file which reports for the user that we've changed to cmake
*add* make_relase.sh convenience script which creates a tarball for release (usage: ./make_release.sh RELEASE_VERSION)
*fix* get_svnrev.sh fixed is the fallback version is produced



git-svn-id: http://tint2.googlecode.com/svn/trunk@494 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-06-13 09:51:52 +00:00

23 lines
536 B
Bash
Executable file

#!/bin/bash
# usage: ./make_release.sh RELEASE_VERSION_NUMBER
if [[ $# -ne 1 ]]; then
echo "usage: $0 RELEASE_VERSION_NUMBER"
exit
fi
DIR=tint2-${1}
echo "Making release ${DIR}"
rm -Rf ${DIR}
svn export . ${DIR} > /dev/null
# delete unneeded files
rm -f ${DIR}/configure ${DIR}/make_release.sh
# replace get_svnrev.sh by a simple echo command
echo "echo \"#define VERSION_STRING \\\"${1}\\\"\" > version.h" > ${DIR}/get_svnrev.sh
# create tarball and remove the exported directory
tar -cjf ${DIR}.tar.bz2 ${DIR}
rm -Rf ${DIR}