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,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");
|
||||
}
|
||||
else {
|
||||
runone("player", "archos.mod");
|
||||
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", $exe);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue