debian/postinst
author lbessard
Tue, 09 Jun 2009 10:10:34 +0200
changeset 356 e9698d0ee5f3
parent 91 8d6dd867cf27
permissions -rw-r--r--
Adding support for printing lines where matiec failed in Log console (thanks to Brendan)
Bug that prevent to see errors in editor with double click fixed.
91
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
     1
#!/bin/sh
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
     2
# postinst script for canfestival
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
     3
#
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
     4
# see: dh_installdeb(1)
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
     5
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
     6
set -e
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
     7
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
     8
# summary of how this script can be called:
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
     9
#        * <postinst> `configure' <most-recently-configured-version>
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    10
#        * <old-postinst> `abort-upgrade' <new version>
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    11
#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    12
#          <new-version>
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    13
#        * <postinst> `abort-remove'
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    14
#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    15
#          <failed-install-package> <version> `removing'
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    16
#          <conflicting-package> <version>
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    17
# for details, see http://www.debian.org/doc/debian-policy/ or
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    18
# the debian-policy package
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    19
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    20
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    21
case "$1" in
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    22
    configure)
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    23
	ln -sf /usr/share/beremiz/Beremiz.py /usr/bin/beremiz
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    24
	chmod 755 /usr/share/beremiz/Beremiz.py
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    25
	;;
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    26
	
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    27
    abort-upgrade|abort-remove|abort-deconfigure)
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    28
    ;;
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    29
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    30
    *)
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    31
        echo "postinst called with unknown argument \`$1'" >&2
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    32
        exit 1
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    33
    ;;
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    34
esac
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    35
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    36
# dh_installdeb will replace this with shell code automatically
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    37
# generated by other debhelper scripts.
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    38
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    39
#DEBHELPER#
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    40
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    41
exit 0
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    42
8d6dd867cf27 add debian dir to create debian package
greg
parents:
diff changeset
    43