diff options
Diffstat (limited to 'tools/release')
-rwxr-xr-x | tools/release | 12 |
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") { | |||
11 | print "run this script in the root dir\n"; | 11 | print "run this script in the root dir\n"; |
12 | exit; | 12 | exit; |
13 | } | 13 | } |
14 | # save the complete version string for VERSION file, | ||
15 | # strip everything after space / hyphen for filename | ||
16 | $longversion = $ARGV[0]; | ||
17 | $version =~ s/[ -].+//; | ||
14 | 18 | ||
15 | # -L allows find to follow symbolic links | 19 | # -L allows find to follow symbolic links |
16 | @files=`find -L . -name FILES`; | 20 | @files=`find -L . -name FILES`; |
@@ -84,7 +88,6 @@ for(@entries) { | |||
84 | `cp -p $_ $dir 2>/dev/null`; | 88 | `cp -p $_ $dir 2>/dev/null`; |
85 | } | 89 | } |
86 | 90 | ||
87 | |||
88 | if(!open(VERSION, "<apps/version.h")) { | 91 | if(!open(VERSION, "<apps/version.h")) { |
89 | print "Can't read version.h\n"; | 92 | print "Can't read version.h\n"; |
90 | exit; | 93 | exit; |
@@ -101,5 +104,12 @@ while(<VERSION>) { | |||
101 | close(VERSION); | 104 | close(VERSION); |
102 | close(THIS); | 105 | close(THIS); |
103 | 106 | ||
107 | if(!open(VER, ">rockbox-$version/docs/VERSION")) { | ||
108 | print "Can't create new docs/VERSION file\n"; | ||
109 | exit; | ||
110 | } | ||
111 | print VER $version; | ||
112 | close(VER); | ||
113 | |||
104 | `tar -cjf rockbox-$version.tar.bz2 rockbox-$version`; | 114 | `tar -cjf rockbox-$version.tar.bz2 rockbox-$version`; |
105 | `rm -rf rockbox-$version`; | 115 | `rm -rf rockbox-$version`; |