summaryrefslogtreecommitdiff
path: root/tools/buildzip.pl
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2008-11-04 10:47:48 +0000
committerNils Wallménius <nils@rockbox.org>2008-11-04 10:47:48 +0000
commitc6ccf7586931f175c73b23b04d84c4b1588c6c02 (patch)
treedff31767dee424aae1e5b9edd9afc70d0470bfc9 /tools/buildzip.pl
parent9d04f1d8f0b2f057d5369433c72d4353d5fd8385 (diff)
downloadrockbox-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-xtools/buildzip.pl13
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="..";
50my $ziptool="zip -r9"; 50my $ziptool="zip -r9";
51my $output="rockbox.zip"; 51my $output="rockbox.zip";
52my $verbose; 52my $verbose;
53my $sim;
53my $exe; 54my $exe;
54my $target; 55my $target;
55my $archos; 56my $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');