greg@533: #!/bin/sh greg@533: # postinst script for canfestival greg@533: # greg@533: # see: dh_installdeb(1) greg@533: greg@533: set -e greg@533: greg@533: # summary of how this script can be called: greg@533: # * `configure' greg@533: # * `abort-upgrade' greg@533: # * `abort-remove' `in-favour' greg@533: # greg@533: # * `abort-remove' greg@533: # * `abort-deconfigure' `in-favour' greg@533: # `removing' greg@533: # greg@533: # for details, see http://www.debian.org/doc/debian-policy/ or greg@533: # the debian-policy package greg@533: greg@533: DLL_LIST= greg@533: CF_CONFIG=/usr/share/CanFestival-3/objdictgen/canfestival_config.py greg@533: CF_CONFIG_TEMP=/usr/share/CanFestival-3/objdictgen/canfestival_config_ori.py greg@533: greg@533: case "$1" in greg@533: configure) greg@533: ;; greg@533: greg@533: remove|purge) greg@533: ldconfig greg@533: cd /usr/lib greg@533: cd /usr/lib greg@533: DLL_LIST= greg@533: FILES= greg@533: greg@533: for file in libcanfestival_can* greg@533: do greg@533: DLL_LIST="'$file',""$DLL_LIST" greg@533: done greg@533: greg@533: cat $CF_CONFIG_TEMP > $CF_CONFIG greg@533: echo "DLL_LIST=[$DLL_LIST]" >> $CF_CONFIG greg@533: ;; greg@533: greg@533: abort-upgrade|abort-remove|abort-deconfigure) greg@533: ;; greg@533: greg@533: *) greg@533: echo "postinst called with unknown argument \`$1'" >&2 greg@533: exit 1 greg@533: ;; greg@533: esac greg@533: greg@533: # dh_installdeb will replace this with shell code automatically greg@533: # generated by other debhelper scripts. greg@533: greg@533: #DEBHELPER# greg@533: greg@533: exit 0 greg@533: greg@533: