summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {
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
94my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = 97my ($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
118if($ARGV[0] !~ /player/i) { 121my $target = $ARGV[0];
119 runone("recorder", "ajbrec.ajz"); 122
123my $exe = "";
124
125if($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
135if($target =~ /recorder/i) {
136 runone("recorder", $exe);
120} 137}
121else { 138else {
122 runone("player", "archos.mod"); 139 runone("player", $exe);
123} 140}
124 141