summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2011-02-26 21:23:20 +0000
committerDave Chapman <dave@dchapman.com>2011-02-26 21:23:20 +0000
commiteddf6247799d106cfeb26e19a4b5c909f36415b2 (patch)
treeef6ba1ed7911a0124e8df156965d776349c32440
parentf1e3f5e6c4fd511153937766c9c8034957df4f65 (diff)
downloadrockbox-eddf6247799d106cfeb26e19a4b5c909f36415b2.tar.gz
rockbox-eddf6247799d106cfeb26e19a4b5c909f36415b2.zip
Clarify the condition for stripping the leading / in rbdir. The calculation of $app in the current code implies that this is not done for any call to buildzip.pl for application builds, but it is in fact only not done for the *install targets - $(MODELNAME) is quoted for the other calls in root.make, and hence $app is false.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29410 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-xtools/buildzip.pl7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl
index 6d25a01f8f..3c4410a172 100755
--- a/tools/buildzip.pl
+++ b/tools/buildzip.pl
@@ -681,10 +681,11 @@ $year+=1900;
681sub runone { 681sub runone {
682 my ($target, $fonts)=@_; 682 my ($target, $fonts)=@_;
683 683
684 # in the app the the layout is different (no .rockbox, but bin/lib/share)
685 $app = ($modelname eq "application"); 684 $app = ($modelname eq "application");
686 unless ($app) { 685
687 #rbdir starts with '/', strip it 686 # Strip the leading / from $rbdir unless we are installing an application
687 # build - the layout is different (no .rockbox, but bin/lib/share)
688 unless ($app && $install) {
688 $rbdir = substr($rbdir, 1); 689 $rbdir = substr($rbdir, 1);
689 } 690 }
690 691