forked from tools/pkgutils
readd bz2 support - don't commit while drunk
This commit is contained in:
parent
d51cdd1c8f
commit
9ca0da6512
@ -84,7 +84,7 @@ If set to 'no', pkgmk will strip built binaries.
|
||||
Default: 'no'
|
||||
.TP
|
||||
\fBPKGMK_COMPRESSION_MODE='STRING'\fP
|
||||
Option to select the mode used to compress the packages. Valid strings are gz, xz and lz.
|
||||
Option to select the mode used to compress the packages. Valid strings are gz, bz2, xz and lz.
|
||||
.br
|
||||
Default: 'gz'
|
||||
.SH SEE ALSO
|
||||
|
3
pkgmk.in
3
pkgmk.in
@ -550,6 +550,7 @@ build_package() {
|
||||
|
||||
case $PKGMK_COMPRESSION_MODE in
|
||||
gz) COMPRESSION="-z" ;;
|
||||
bz2) COMPRESSION="-j" ;;
|
||||
xz) COMPRESSION="-J" ;;
|
||||
lz) COMPRESSION="--lzip" ;;
|
||||
esac
|
||||
@ -821,7 +822,7 @@ main() {
|
||||
check_pkgfile
|
||||
|
||||
case $PKGMK_COMPRESSION_MODE in
|
||||
gz|xz|lz)
|
||||
gz|bz2|xz|lz)
|
||||
TARGET="$PKGMK_PACKAGE_DIR/$name#$version-$release.pkg.tar.$PKGMK_COMPRESSION_MODE"
|
||||
;;
|
||||
*)
|
||||
|
Loading…
x
Reference in New Issue
Block a user