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
This commit is contained in:
Dave Chapman 2011-02-26 21:23:20 +00:00
parent f1e3f5e6c4
commit eddf624779

View file

@ -681,10 +681,11 @@ $year+=1900;
sub runone {
my ($target, $fonts)=@_;
# in the app the the layout is different (no .rockbox, but bin/lib/share)
$app = ($modelname eq "application");
unless ($app) {
#rbdir starts with '/', strip it
# Strip the leading / from $rbdir unless we are installing an application
# build - the layout is different (no .rockbox, but bin/lib/share)
unless ($app && $install) {
$rbdir = substr($rbdir, 1);
}