summaryrefslogtreecommitdiffstats
path: root/debian/xz-utils.postinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 03:10:08 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 03:10:08 +0000
commit32d4e2f5ffe9e309fc4c0c46733d2e1c0d3d9349 (patch)
tree1fa51eb50812e44893f2c0a4fadafcbe7c7f1294 /debian/xz-utils.postinst
parentAdding upstream version 5.6.1+really5.4.5. (diff)
downloadxz-utils-32d4e2f5ffe9e309fc4c0c46733d2e1c0d3d9349.tar.xz
xz-utils-32d4e2f5ffe9e309fc4c0c46733d2e1c0d3d9349.zip
Adding debian version 5.6.1+really5.4.5-1.debian/5.6.1+really5.4.5-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/xz-utils.postinst')
-rw-r--r--debian/xz-utils.postinst19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/xz-utils.postinst b/debian/xz-utils.postinst
new file mode 100644
index 0000000..a2cf46f
--- /dev/null
+++ b/debian/xz-utils.postinst
@@ -0,0 +1,19 @@
+#!/bin/sh
+set -e
+
+slave () {
+ dir=$1 filename=$2 target=$3
+ echo "--slave $dir/$filename $filename $dir/$target"
+}
+
+update-alternatives --install /usr/bin/lzma lzma /usr/bin/xz 20 $(
+ slave /usr/share/man/man1 lzma.1.gz xz.1.gz
+ slave /usr/bin unlzma unxz
+ slave /usr/share/man/man1 unlzma.1.gz unxz.1.gz
+ for util in cat more less diff cmp grep egrep fgrep
+ do
+ slave /usr/bin lz$util xz$util
+ slave /usr/share/man/man1 lz$util.1.gz xz$util.1.gz
+ done
+)
+#DEBHELPER#