File: postinst

package info (click to toggle)
gom 0.29.10-5
  • links: PTS
  • area: main
  • in suites: slink
  • size: 420 kB
  • ctags: 292
  • sloc: ansic: 3,189; sh: 573; makefile: 70
file content (16 lines) | stat: -rw-r--r-- 531 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash -e
#
#echo "DPKG_OPTIONS: $*"
#
update-alternatives --install /usr/bin/gom gom /usr/bin/gom-c 25
update-alternatives --install /usr/bin/gom gom /usr/bin/gom-ct 50

#DEBHELPER#

if test "$1" == "configure" ;
    then # I feel leaving gom unconfigured from gomconfig's point
         # of view can be viewed as "valid configuration" from dpkg point
	 # of view (gom may still be used with options, and users may still
	 # locally configure gom successfully). That's why '|| true'.
         /usr/sbin/gomconfig || true
fi