summaryrefslogtreecommitdiffstats
path: root/debian/linux-perf.postinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-11 08:28:00 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-11 08:28:00 +0000
commit3565071f226432336a54d0193d729fa4508a3394 (patch)
tree4cde13f078f84c0a7785d234fd52edce7c90546a /debian/linux-perf.postinst
parentAdding upstream version 6.6.15. (diff)
downloadlinux-3565071f226432336a54d0193d729fa4508a3394.tar.xz
linux-3565071f226432336a54d0193d729fa4508a3394.zip
Adding debian version 6.6.15-2.debian/6.6.15-2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/linux-perf.postinst')
-rw-r--r--debian/linux-perf.postinst11
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/linux-perf.postinst b/debian/linux-perf.postinst
new file mode 100644
index 0000000000..d38695a054
--- /dev/null
+++ b/debian/linux-perf.postinst
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+old_version_suffix="$(echo "$2" | sed -rn 's/^([0-9]+\.[0-9]+).*/\1/p')"
+if [ "$old_version_suffix" ]; then
+ dpkg-maintscript-helper symlink_to_dir \
+ /usr/share/doc/linux-perf "linux-perf-${old_version_suffix}" 5.16\~rc8-1\~exp1 linux-perf -- "$@"
+fi
+
+#DEBHELPER#