From 294387d2d76b424b036e1008c02844b2e2434492 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Tue, 5 Oct 2010 14:32:15 +0200 Subject: [PATCH] sde-binary: added support for creating xz (lzma2) compressed tar packages --- lib/sde-binary/package.sh | 1 + lib/sde-binary/preconfig.in | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/sde-binary/package.sh b/lib/sde-binary/package.sh index 12c631b..2307a53 100755 --- a/lib/sde-binary/package.sh +++ b/lib/sde-binary/package.sh @@ -72,6 +72,7 @@ case "$pkg_type" in tar.bz2) compressor=bzip2 ;; tar.lzo) compressor=lzop ;; tar.lzma) compressor=lzma ;; + tar.xz) compressor=xz ;; *) # external type if [ -x "$SDEROOT/lib/sde-package/package-$pkg_type.sh" ]; then exec $SDEROOT/lib/sde-package/package-$pkg_type.sh ${versioned:+--versioned} --root "${root}" \ diff --git a/lib/sde-binary/preconfig.in b/lib/sde-binary/preconfig.in index 66d260f..4b7976b 100644 --- a/lib/sde-binary/preconfig.in +++ b/lib/sde-binary/preconfig.in @@ -20,7 +20,7 @@ if [ ! -f $cfgtmpdir/cache_pkgfile_type.in ]; then choice SDECFG_PKGFILE_TYPE tar.bz2 \\ EOT # generate choices - for x in tar.{bz2,gz,lzma,lzo} \ + for x in tar.{bz2,gz,lzma,lzo,xz} \ $( ls -1 lib/sde-binary/package-*.sh 2> /dev/null | sed -e 's,.*/package-\(.*\).sh,\1,' ); do $ECHO_E "\t\t${x} 'Create ${x} binary packages' \\" >> $cfgtmpdir/cache_pkgfile_type.in