debian/postinst
author Mario de Sousa <msousa@fe.up.pt>
Wed, 14 Mar 2012 10:51:49 +0000
changeset 483 7f839fb100c1
parent 171 59f5197b088a
permissions -rwxr-xr-x
Cleaning up XORN, ANDN, and ORN operator code.
171
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
     1
#!/bin/sh
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
     2
# postinst script for canfestival
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
     3
#
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
     4
# see: dh_installdeb(1)
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
     5
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
     6
set -e
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
     7
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
     8
# summary of how this script can be called:
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
     9
#        * <postinst> `configure' <most-recently-configured-version>
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    10
#        * <old-postinst> `abort-upgrade' <new version>
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    11
#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    12
#          <new-version>
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    13
#        * <postinst> `abort-remove'
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    14
#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    15
#          <failed-install-package> <version> `removing'
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    16
#          <conflicting-package> <version>
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    17
# for details, see http://www.debian.org/doc/debian-policy/ or
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    18
# the debian-policy package
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    19
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    20
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    21
case "$1" in
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    22
    configure)
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    23
	ln -sf /usr/share/matiec/iec2c /usr/bin/iec2c
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    24
	chmod 755 /usr/share/matiec/iec2c
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    25
	;;
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    26
	
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    27
    abort-upgrade|abort-remove|abort-deconfigure)
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    28
    ;;
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    29
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    30
    *)
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    31
        echo "postinst called with unknown argument \`$1'" >&2
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    32
        exit 1
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    33
    ;;
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    34
esac
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    35
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    36
# dh_installdeb will replace this with shell code automatically
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    37
# generated by other debhelper scripts.
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    38
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    39
#DEBHELPER#
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    40
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    41
exit 0
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    42
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    43