summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-06-14 15:04:46 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-06-14 15:04:46 +0000
commitb156352756d22b33b5c20403010e3a7cdaf9de4d (patch)
tree97182280c03b8c1d1e32da44fd83c9709597b52c /tools
parentf5491a519dfe6a9156967eb0c514e978008f2c00 (diff)
downloadrockbox-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
Diffstat (limited to 'tools')
-rwxr-xr-xtools/buildzip.pl31
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 {
`$cmd`;
}
- `cp rockbox.ucl .rockbox/`; # UCL for flashing
+ if($image) {
+ # image is blank when this is a simulator
+ `cp rockbox.ucl .rockbox/`; # UCL for flashing
+ }
}
mkdir ".rockbox/docs", 0777;
@@ -83,12 +86,12 @@ sub buildzip {
`find .rockbox | zip $zip -@ >/dev/null`;
- `zip $zip $image`;
+ if($image) {
+ `zip $zip $image`;
+ }
# remove the .rockbox afterwards
`rm -rf .rockbox`;
-
- print "Created $zip\n";
}
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
@@ -115,10 +118,24 @@ sub runone {
($type eq "player")?0:1);
};
-if($ARGV[0] !~ /player/i) {
- runone("recorder", "ajbrec.ajz");
+my $target = $ARGV[0];
+
+my $exe = "";
+
+if($target !~ /sim/i) {
+ # not a simulator
+ if($target =~ /recorder/i) {
+ $exe = "ajbrec.ajz";
+ }
+ else {
+ $exe = "archos.mod";
+ }
+}
+
+if($target =~ /recorder/i) {
+ runone("recorder", $exe);
}
else {
- runone("player", "archos.mod");
+ runone("player", $exe);
}