diff options
author | Jonas Häggqvist <rasher@rasher.dk> | 2009-10-27 22:57:23 +0000 |
---|---|---|
committer | Jonas Häggqvist <rasher@rasher.dk> | 2009-10-27 22:57:23 +0000 |
commit | 06027214c8ffe7e2be0fb81742b1c8478ad91f38 (patch) | |
tree | a0cf72f2d50787154360a2ce8db878d6b5d46fe1 /tools/release | |
parent | b82963bd9dd99c705625aceadb7118a428fc4ed2 (diff) | |
download | rockbox-06027214c8ffe7e2be0fb81742b1c8478ad91f38.tar.gz rockbox-06027214c8ffe7e2be0fb81742b1c8478ad91f38.zip |
Adapt to the new method of building w32 sims (adds a -w flag).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23373 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/release')
-rwxr-xr-x | tools/release/sims.pl | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/tools/release/sims.pl b/tools/release/sims.pl index 0481234189..a837b00c1c 100755 --- a/tools/release/sims.pl +++ b/tools/release/sims.pl | |||
@@ -18,12 +18,13 @@ while (scalar @ARGV > 0) { | |||
18 | if ($ARGV[0] eq "-h") { | 18 | if ($ARGV[0] eq "-h") { |
19 | print $ARGV[0]."\n"; | 19 | print $ARGV[0]."\n"; |
20 | print <<MOO | 20 | print <<MOO |
21 | Usage: w32sims [-v] [-u] [-r VERSION] [-f filename] [buildonly] | 21 | Usage: w32sims [-v] [-u] [-s] [-w] [-r VERSION] [-f filename] [buildonly] |
22 | -v Verbose output | 22 | -v Verbose output |
23 | -u Run svn up before building | 23 | -u Run svn up before building |
24 | -r Use the specified version string for filenames (defaults to SVN | 24 | -r Use the specified version string for filenames (defaults to SVN |
25 | revision) | 25 | revision) |
26 | -s Strip binaries before zipping them up. | 26 | -s Strip binaries before zipping them up. |
27 | -w Crosscompile for Windows (requires mingw32) | ||
27 | -f Filename format string (without extension). This can include a | 28 | -f Filename format string (without extension). This can include a |
28 | filepath (relative or absolute) May include the following special | 29 | filepath (relative or absolute) May include the following special |
29 | strings: | 30 | strings: |
@@ -49,6 +50,9 @@ MOO | |||
49 | elsif ($ARGV[0] eq "-s") { | 50 | elsif ($ARGV[0] eq "-s") { |
50 | $strip =1; | 51 | $strip =1; |
51 | } | 52 | } |
53 | elsif ($ARGV[0] eq "-w") { | ||
54 | $cross =1; | ||
55 | } | ||
52 | elsif ($ARGV[0] eq "-r") { | 56 | elsif ($ARGV[0] eq "-r") { |
53 | $version =$ARGV[1]; | 57 | $version =$ARGV[1]; |
54 | shift @ARGV; | 58 | shift @ARGV; |
@@ -153,8 +157,15 @@ sub buildit { | |||
153 | 157 | ||
154 | `rm -rf * >/dev/null 2>&1`; | 158 | `rm -rf * >/dev/null 2>&1`; |
155 | 159 | ||
156 | my $c = sprintf('printf "%s\n%ss\n" | ../tools/configure', | 160 | if ($cross) { |
157 | $confnum, $extra); | 161 | $simstring = 'a\nw\ns\n\n'; |
162 | } | ||
163 | else { | ||
164 | $simstring = 's\n'; | ||
165 | } | ||
166 | |||
167 | my $c = sprintf('printf "%s\n%s%s" | ../tools/configure', | ||
168 | $confnum, $extra, $simstring); | ||
158 | 169 | ||
159 | print "C: $c\n" if($verbose); | 170 | print "C: $c\n" if($verbose); |
160 | `$c`; | 171 | `$c`; |