summaryrefslogtreecommitdiffstats
path: root/tools/release
diff options
context:
space:
mode:
Diffstat (limited to 'tools/release')
-rwxr-xr-xtools/release12
1 files changed, 11 insertions, 1 deletions
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, "<apps/version.h")) {
print "Can't read version.h\n";
exit;
@@ -101,5 +104,12 @@ while(<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`;