diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-06-14 15:04:46 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-06-14 15:04:46 +0000 |
commit | b156352756d22b33b5c20403010e3a7cdaf9de4d (patch) | |
tree | 97182280c03b8c1d1e32da44fd83c9709597b52c | |
parent | f5491a519dfe6a9156967eb0c514e978008f2c00 (diff) | |
download | rockbox-b156352756d22b33b5c20403010e3a7cdaf9de4d.tar.gz rockbox-b156352756d22b33b5c20403010e3a7cdaf9de4d.zip |
support building a zip file for the simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4743 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-x | tools/buildzip.pl | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl index 90beeb7adf..fa967b1b28 100755 --- a/tools/buildzip.pl +++ b/tools/buildzip.pl | |||
@@ -58,7 +58,10 @@ sub buildzip { | |||
58 | `$cmd`; | 58 | `$cmd`; |
59 | } | 59 | } |
60 | 60 | ||
61 | `cp rockbox.ucl .rockbox/`; # UCL for flashing | 61 | if($image) { |
62 | # image is blank when this is a simulator | ||
63 | `cp rockbox.ucl .rockbox/`; # UCL for flashing | ||
64 | } | ||
62 | } | 65 | } |
63 | 66 | ||
64 | mkdir ".rockbox/docs", 0777; | 67 | mkdir ".rockbox/docs", 0777; |
@@ -83,12 +86,12 @@ sub buildzip { | |||
83 | 86 | ||
84 | `find .rockbox | zip $zip -@ >/dev/null`; | 87 | `find .rockbox | zip $zip -@ >/dev/null`; |
85 | 88 | ||
86 | `zip $zip $image`; | 89 | if($image) { |
90 | `zip $zip $image`; | ||
91 | } | ||
87 | 92 | ||
88 | # remove the .rockbox afterwards | 93 | # remove the .rockbox afterwards |
89 | `rm -rf .rockbox`; | 94 | `rm -rf .rockbox`; |
90 | |||
91 | print "Created $zip\n"; | ||
92 | } | 95 | } |
93 | 96 | ||
94 | my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = | 97 | my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = |
@@ -115,10 +118,24 @@ sub runone { | |||
115 | ($type eq "player")?0:1); | 118 | ($type eq "player")?0:1); |
116 | }; | 119 | }; |
117 | 120 | ||
118 | if($ARGV[0] !~ /player/i) { | 121 | my $target = $ARGV[0]; |
119 | runone("recorder", "ajbrec.ajz"); | 122 | |
123 | my $exe = ""; | ||
124 | |||
125 | if($target !~ /sim/i) { | ||
126 | # not a simulator | ||
127 | if($target =~ /recorder/i) { | ||
128 | $exe = "ajbrec.ajz"; | ||
129 | } | ||
130 | else { | ||
131 | $exe = "archos.mod"; | ||
132 | } | ||
133 | } | ||
134 | |||
135 | if($target =~ /recorder/i) { | ||
136 | runone("recorder", $exe); | ||
120 | } | 137 | } |
121 | else { | 138 | else { |
122 | runone("player", "archos.mod"); | 139 | runone("player", $exe); |
123 | } | 140 | } |
124 | 141 | ||