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