Fix FS #9280 (bsd tar errors out when called with -u and the destination file doesn't exist) by using -c. This requires buildzip.pl to only call the archiver once, with the additional beneft that it's more efficient (saves a call, and allows 7zip archives to become smaller).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18350 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
32c65bb203
commit
96aba33d1e
2 changed files with 14 additions and 18 deletions
|
@ -433,26 +433,22 @@ sub runone {
|
|||
# build a full install .rockbox directory
|
||||
buildzip($target, $fonts);
|
||||
|
||||
# create a zip file from the .rockbox dfir
|
||||
|
||||
unlink($output);
|
||||
if($verbose) {
|
||||
print "$ziptool $output .rockbox >/dev/null\n";
|
||||
}
|
||||
system("$ziptool $output .rockbox >/dev/null");
|
||||
|
||||
if($target && ($fonts != 1)) {
|
||||
# On some targets, rockbox.* is inside .rockbox
|
||||
if($target !~ /(mod|ajz|wma)\z/i) {
|
||||
if($fonts == 1) {
|
||||
# Don't include image file in fonts-only package
|
||||
undef $target;
|
||||
}
|
||||
if($target && ($target !~ /(mod|ajz|wma)\z/i)) {
|
||||
# On some targets, the image goes into .rockbox.
|
||||
copy("$target", ".rockbox/$target");
|
||||
$target = ".rockbox/".$target;
|
||||
undef $target;
|
||||
}
|
||||
|
||||
if($verbose) {
|
||||
print "$ziptool $output $target >/dev/null\n";
|
||||
}
|
||||
system("$ziptool $output $target >/dev/null");
|
||||
print "$ziptool $output .rockbox $target >/dev/null\n";
|
||||
}
|
||||
system("$ziptool $output .rockbox $target >/dev/null");
|
||||
|
||||
# remove the .rockbox afterwards
|
||||
rmtree('.rockbox');
|
||||
|
|
2
tools/configure
vendored
2
tools/configure
vendored
|
@ -2346,7 +2346,7 @@ fullzip:
|
|||
tar:
|
||||
\$(SILENT)rm -f rockbox.tar
|
||||
\$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done; \\
|
||||
\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\$\$feat\" -i \"\$(TARGET_ID)\" -o "rockbox.tar" -z "tar -uf" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
|
||||
\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\$\$feat\" -i \"\$(TARGET_ID)\" -o "rockbox.tar" -z "tar -cf" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
|
||||
|
||||
bzip2: tar
|
||||
\$(SILENT)bzip2 -f9 rockbox.tar
|
||||
|
|
Loading…
Reference in a new issue