diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 21:12:05 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 21:12:05 +0000 |
commit | 8f50ad90d48b537c93151485b23dd37f6b97f01a (patch) | |
tree | 2d3be7c349941d9fab1931dedbff19e4dd5344df /debian/xz-utils.postinst | |
parent | Adding upstream version 5.4.1. (diff) | |
download | xz-utils-debian/5.4.1-0.2.tar.xz xz-utils-debian/5.4.1-0.2.zip |
Adding debian version 5.4.1-0.2.debian/5.4.1-0.2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/xz-utils.postinst')
-rw-r--r-- | debian/xz-utils.postinst | 19 |
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# |