debian: Prepare for upload
[xz/debian.git] / debian / xz-utils.postinst
bloba2cf46f40daba3a71f10080769c5e86bbc771672
1 #!/bin/sh
2 set -e
4 slave () {
5 dir=$1 filename=$2 target=$3
6 echo "--slave $dir/$filename $filename $dir/$target"
9 update-alternatives --install /usr/bin/lzma lzma /usr/bin/xz 20 $(
10 slave /usr/share/man/man1 lzma.1.gz xz.1.gz
11 slave /usr/bin unlzma unxz
12 slave /usr/share/man/man1 unlzma.1.gz unxz.1.gz
13 for util in cat more less diff cmp grep egrep fgrep
15 slave /usr/bin lz$util xz$util
16 slave /usr/share/man/man1 lz$util.1.gz xz$util.1.gz
17 done
19 #DEBHELPER#