greg@533: #!/bin/sh greg@579: # postrm script for canfestival greg@533: greg@533: set -e greg@533: greg@533: DLL_LIST= greg@579: CF_CONFIG_DIR=/usr/share/CanFestival-3/objdictgen/ 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@579: purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) greg@579: greg@579: if [ -d $CF_CONFIG_DIR ];then greg@579: ldconfig greg@579: # Find canfestival driver library in /usr/lib greg@579: cd /usr/lib greg@579: for file in `ls libcanfestival_can* 2>/dev/null` greg@579: do greg@579: DLL_LIST="'$file',""$DLL_LIST" greg@579: done greg@579: greg@579: # copy template config and add the DLL_LIST greg@579: # do this to display available canfestival plugin list choice in beremiz greg@579: cat $CF_CONFIG_TEMP > $CF_CONFIG greg@579: echo "DLL_LIST=[$DLL_LIST]" >> $CF_CONFIG greg@579: fi greg@533: ;; greg@533: greg@533: *) greg@579: echo "postrm 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: