Add HAIKU_PACKAGE_COMPRESSION_LEVEL build variable

It allows to control the compression level used for package creation
and update. The default (9) is *very* slow, so developers may want to
use a smaller level during the regular development process to keep
turn-around times low.
This commit is contained in:
Ingo Weinhold
2013-05-25 01:12:26 +02:00
parent 796343ed73
commit 06f5437c21
3 changed files with 23 additions and 2 deletions
+5 -2
View File
@@ -7,6 +7,7 @@ set -o errexit
# outputDir
# sourceDir
# tmpDir
# compressionLevel
# updateOnly
#
# addattr
@@ -69,7 +70,9 @@ $mimeset --mimedb "$mimeDB" "$contentsDir"
# create the package
if [ ! $updateOnly ]; then
rm -f "$packagePath"
$package create -q -i "$packageInfoPath" -C "$contentsDir" "$packagePath"
$package create -q "-$compressionLevel" -i "$packageInfoPath" \
-C "$contentsDir" "$packagePath"
else
$package add -q -f -i "$packageInfoPath" -C "$contentsDir" "$packagePath" .
$package add -q -f "-$compressionLevel" -i "$packageInfoPath" \
-C "$contentsDir" "$packagePath" .
fi