File: xpilot-ng-client-sdl.postinst

package info (click to toggle)
xpilot-ng 1%3A4.7.3-2.2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 13,516 kB
  • ctags: 13,132
  • sloc: ansic: 113,447; java: 6,097; python: 4,100; sh: 4,023; cpp: 3,563; makefile: 574; objc: 177; perl: 134; xml: 31
file content (17 lines) | stat: -rw-r--r-- 538 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e

if [ "$1" = configure ]; then
    # Add an alternative for xpilot and xpilot-ng
    # - we prefer xpilot-ng-sdl over xpilot-ng-x11 and original
    #   (non-NG) xpilot for 'xpilot' as it is a superset of
    #   original xpilot functionality
    update-alternatives --install /usr/games/xpilot xpilot \
        /usr/games/xpilot-ng-sdl 30
    # - we prefer the sdl NG version over the x11 NG version
    update-alternatives --install /usr/games/xpilot-ng xpilot-ng \
        /usr/games/xpilot-ng-sdl 20
fi

#DEBHELPER#