debian/canfestival-virtual.postinst
author greg
Mon, 02 Mar 2009 09:30:08 +0100
changeset 531 f912f8d26e98
child 533 4d50417dab22
permissions -rwxr-xr-x
updated : debian package scripts
531
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
     1
#!/bin/sh
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
     2
# postinst script for canfestival
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
     3
#
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
     4
# see: dh_installdeb(1)
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
     5
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
     6
set -e
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
     7
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
     8
# summary of how this script can be called:
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
     9
#        * <postinst> `configure' <most-recently-configured-version>
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    10
#        * <old-postinst> `abort-upgrade' <new version>
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    11
#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    12
#          <new-version>
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    13
#        * <postinst> `abort-remove'
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    14
#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    15
#          <failed-install-package> <version> `removing'
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    16
#          <conflicting-package> <version>
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    17
# for details, see http://www.debian.org/doc/debian-policy/ or
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    18
# the debian-policy package
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    19
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    20
DLL_LIST=
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    21
CF_CONFIG=/usr/share/CanFestival-3/objdictgen/canfestival_config.py
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    22
CF_CONFIG_TEMP=/usr/share/CanFestival-3/objdictgen/canfestival_config_ori.py
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    23
case "$1" in
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    24
    configure)
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    25
    ldconfig
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    26
    cd /usr/lib
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    27
    DLL_LIST=
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    28
	FILES=
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    29
	for file in libcanfestival_can*
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    30
	do
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    31
		DLL_LIST="$file,""$DLL_LIST"
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    32
	done
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    33
	cat $CF_CONFIG_TEMP > $CF_CONFIG
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    34
	echo "DLL_LIST=[$DLL_LIST]" >> $CF_CONFIG
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    35
	;;
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    36
	
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    37
    abort-upgrade|abort-remove|abort-deconfigure)
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    38
    ;;
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    39
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    40
    *)
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    41
        echo "postinst called with unknown argument \`$1'" >&2
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    42
        exit 1
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    43
    ;;
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    44
esac
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    45
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    46
# dh_installdeb will replace this with shell code automatically
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    47
# generated by other debhelper scripts.
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    48
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    49
#DEBHELPER#
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    50
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    51
exit 0
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    52
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    53