File: doom-common.preinst.in

package info (click to toggle)
game-data-packager 73
  • links: PTS, VCS
  • area: contrib
  • in suites: bookworm
  • size: 23,420 kB
  • sloc: python: 11,086; sh: 609; makefile: 59
file content (26 lines) | stat: -rw-r--r-- 375 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
# Copyright 2009 Jon Dowland
# SPDX-License-Identifier: GPL-2.0-only
#
# preinst script for IWAD

set -e

case "$1" in
	upgrade)
	if dpkg --compare-versions "$2" lt "22"; then
			update-alternatives --remove IWAD \
				/usr/share/games/game-data-packager/IWAD
		fi
	;;

	install|abort-upgrade)
	;;

	*)
		echo "unsupported method $1" >&2
		exit 1
		;;
esac

exit 0