diff options
author | Nils Wallménius <nils@rockbox.org> | 2008-11-04 10:47:48 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2008-11-04 10:47:48 +0000 |
commit | c6ccf7586931f175c73b23b04d84c4b1588c6c02 (patch) | |
tree | dff31767dee424aae1e5b9edd9afc70d0470bfc9 /tools/buildzip.pl | |
parent | 9d04f1d8f0b2f057d5369433c72d4353d5fd8385 (diff) | |
download | rockbox-c6ccf7586931f175c73b23b04d84c4b1588c6c02.tar.gz rockbox-c6ccf7586931f175c73b23b04d84c4b1588c6c02.zip |
Changes to simulator installation, 'make fullinstall' is now the way to install everything, 'make install' is much faster but does not include fonts, avoid useless file compression/extraction making fullinstall about twice as fast as the old install, remember to reconfigure your sim builds
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19000 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/buildzip.pl')
-rwxr-xr-x | tools/buildzip.pl | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl index e6ddab9b3d..107c1b7ff1 100755 --- a/tools/buildzip.pl +++ b/tools/buildzip.pl | |||
@@ -50,6 +50,7 @@ $ROOT=".."; | |||
50 | my $ziptool="zip -r9"; | 50 | my $ziptool="zip -r9"; |
51 | my $output="rockbox.zip"; | 51 | my $output="rockbox.zip"; |
52 | my $verbose; | 52 | my $verbose; |
53 | my $sim; | ||
53 | my $exe; | 54 | my $exe; |
54 | my $target; | 55 | my $target; |
55 | my $archos; | 56 | my $archos; |
@@ -95,6 +96,10 @@ while(1) { | |||
95 | $verbose =1; | 96 | $verbose =1; |
96 | shift @ARGV; | 97 | shift @ARGV; |
97 | } | 98 | } |
99 | elsif($ARGV[0] eq "-s") { | ||
100 | $sim =1; | ||
101 | shift @ARGV; | ||
102 | } | ||
98 | else { | 103 | else { |
99 | $target = $ARGV[0]; | 104 | $target = $ARGV[0]; |
100 | $exe = $ARGV[1]; | 105 | $exe = $ARGV[1]; |
@@ -448,7 +453,13 @@ sub runone { | |||
448 | if($verbose) { | 453 | if($verbose) { |
449 | print "$ziptool $output .rockbox $target >/dev/null\n"; | 454 | print "$ziptool $output .rockbox $target >/dev/null\n"; |
450 | } | 455 | } |
451 | system("$ziptool $output .rockbox $target >/dev/null"); | 456 | |
457 | if($sim) { | ||
458 | system("cp -r .rockbox archos/ >/dev/null"); | ||
459 | } | ||
460 | else { | ||
461 | system("$ziptool $output .rockbox $target >/dev/null"); | ||
462 | } | ||
452 | 463 | ||
453 | # remove the .rockbox afterwards | 464 | # remove the .rockbox afterwards |
454 | rmtree('.rockbox'); | 465 | rmtree('.rockbox'); |