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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user