debian/linux-perf.postinst
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | old_version_suffix="$(echo "$2" | sed -rn 's/^([0-9]+\.[0-9]+).*/\1/p')" |
| 6 | if [ "$old_version_suffix" ]; then |
| 7 | dpkg-maintscript-helper symlink_to_dir \ |
| 8 | /usr/share/doc/linux-perf "linux-perf-${old_version_suffix}" 5.16\~rc8-1\~exp1 linux-perf -- "$@" |
| 9 | fi |
| 10 | |
| 11 | #DEBHELPER# |