From ea37d4c0729057b01c0e0b82b3bef7030379da2f Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Mon, 22 Jan 2007 23:09:07 +0000 Subject: Use the svn revision number for version information too, version string is now "r- unless there is a static version file (e.g. created by tools/release). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12090 a1c6a512-1295-4272-9138-f99709370657 --- tools/release | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'tools/release') diff --git a/tools/release b/tools/release index 1a0b245a2f..3c5d5037fe 100755 --- a/tools/release +++ b/tools/release @@ -11,6 +11,10 @@ if(!-f "apps/version.h") { print "run this script in the root dir\n"; exit; } +# save the complete version string for VERSION file, +# strip everything after space / hyphen for filename +$longversion = $ARGV[0]; +$version =~ s/[ -].+//; # -L allows find to follow symbolic links @files=`find -L . -name FILES`; @@ -84,7 +88,6 @@ for(@entries) { `cp -p $_ $dir 2>/dev/null`; } - if(!open(VERSION, ") { close(VERSION); close(THIS); +if(!open(VER, ">rockbox-$version/docs/VERSION")) { + print "Can't create new docs/VERSION file\n"; + exit; +} +print VER $version; +close(VER); + `tar -cjf rockbox-$version.tar.bz2 rockbox-$version`; `rm -rf rockbox-$version`; -- cgit v1.2.3