forked from len0rd/rockbox
support building a zip file for the simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4743 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f5491a519d
commit
b156352756
1 changed files with 26 additions and 9 deletions
|
@ -58,8 +58,11 @@ sub buildzip {
|
||||||
`$cmd`;
|
`$cmd`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($image) {
|
||||||
|
# image is blank when this is a simulator
|
||||||
`cp rockbox.ucl .rockbox/`; # UCL for flashing
|
`cp rockbox.ucl .rockbox/`; # UCL for flashing
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
mkdir ".rockbox/docs", 0777;
|
mkdir ".rockbox/docs", 0777;
|
||||||
for(("BATTERY-FAQ",
|
for(("BATTERY-FAQ",
|
||||||
|
@ -83,12 +86,12 @@ sub buildzip {
|
||||||
|
|
||||||
`find .rockbox | zip $zip -@ >/dev/null`;
|
`find .rockbox | zip $zip -@ >/dev/null`;
|
||||||
|
|
||||||
|
if($image) {
|
||||||
`zip $zip $image`;
|
`zip $zip $image`;
|
||||||
|
}
|
||||||
|
|
||||||
# remove the .rockbox afterwards
|
# remove the .rockbox afterwards
|
||||||
`rm -rf .rockbox`;
|
`rm -rf .rockbox`;
|
||||||
|
|
||||||
print "Created $zip\n";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
|
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
|
||||||
|
@ -115,10 +118,24 @@ sub runone {
|
||||||
($type eq "player")?0:1);
|
($type eq "player")?0:1);
|
||||||
};
|
};
|
||||||
|
|
||||||
if($ARGV[0] !~ /player/i) {
|
my $target = $ARGV[0];
|
||||||
runone("recorder", "ajbrec.ajz");
|
|
||||||
}
|
my $exe = "";
|
||||||
else {
|
|
||||||
runone("player", "archos.mod");
|
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", $exe);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue