From c7df62d370ed64393e9551f0086b84369c7ccb0b Mon Sep 17 00:00:00 2001 From: teru Date: Sat, 25 Sep 2010 14:47:11 +0000 Subject: [PATCH] fix FS#11596. make "make install" use rbdir. copy image file correctly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28160 a1c6a512-1295-4272-9138-f99709370657 --- tools/buildzip.pl | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tools/buildzip.pl b/tools/buildzip.pl index e299d7c02..fe0bd591e 100755 --- a/tools/buildzip.pl +++ b/tools/buildzip.pl @@ -119,14 +119,14 @@ sub make_install { $userdir .= "/share/rockbox"; } else { # for non-app builds we expect the prefix to be the dir above .rockbox - $bindir .= "/.rockbox"; + $bindir .= "/$rbdir"; $libdir = $userdir = $bindir; } if ($dest =~ /\/dev\/null/) { die "ERROR: No PREFIX given\n" } - if ((!$app) && $src && (abs_path($dest) eq abs_path($src))) { + if ((!$app) && $src && (abs_path($bindir) eq abs_path($src))) { return 1; } @@ -663,12 +663,14 @@ sub runone { } if($target && ($target !~ /(mod|ajz|wma)\z/i)) { # On some targets, the image goes into .rockbox. - copy("$target", "$rbdir/$target"); + copy("$target", ".rockbox/$target"); undef $target; } if($install) { make_install(".rockbox", $install) or die "MKDIRFAILED\n"; + rmtree(".rockbox"); + print "rm .rockbox\n" if $verbose; } else { unless (".rockbox" eq $rbdir) { @@ -679,9 +681,9 @@ sub runone { } system("$ziptool $output $rbdir $target >/dev/null"); print "$ziptool $output $rbdir $target >/dev/null\n" if $verbose; + rmtree("$rbdir"); + print "rm $rbdir\n" if $verbose; } - rmtree(".rockbox"); - print "rm .rockbox\n" if $verbose; }; if(!$exe) { -- 2.11.4.GIT