diff options
author | Fredrik Rinnestam <fredrik@crux.nu> | 2018-11-17 21:11:16 +0100 |
---|---|---|
committer | Fredrik Rinnestam <fredrik@crux.nu> | 2018-11-17 21:11:16 +0100 |
commit | 9ca0da65121451447cdd284f98027dca2e16fb2e (patch) | |
tree | 431b5f09971067e7ec743f45f83ad36ea6248a77 | |
parent | d51cdd1c8f24ef6f53cb87a0d06f4066cd91af8c (diff) | |
download | pkgutils-9ca0da65121451447cdd284f98027dca2e16fb2e.tar.gz pkgutils-9ca0da65121451447cdd284f98027dca2e16fb2e.tar.xz |
readd bz2 support - don't commit while drunk
-rw-r--r-- | pkgmk.conf.5.in | 2 | ||||
-rwxr-xr-x | pkgmk.in | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/pkgmk.conf.5.in b/pkgmk.conf.5.in index 786da57e..98976d61 100644 --- a/pkgmk.conf.5.in +++ b/pkgmk.conf.5.in @@ -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 @@ -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" ;; *) |