greg@346: #!/bin/sh greg@346: # postinst script for canfestival greg@346: # greg@346: # see: dh_installdeb(1) greg@346: greg@346: set -e greg@346: 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@579: greg@346: case "$1" in greg@346: configure) greg@533: ldconfig greg@579: greg@579: # Find canfestival driver library in /usr/lib greg@579: cd /usr/lib greg@533: for file in libcanfestival_can* greg@533: do greg@533: DLL_LIST="'$file',""$DLL_LIST" greg@533: 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@533: cat $CF_CONFIG_TEMP > $CF_CONFIG greg@533: echo "DLL_LIST=[$DLL_LIST]" >> $CF_CONFIG greg@346: ;; greg@346: greg@346: abort-upgrade|abort-remove|abort-deconfigure) greg@346: ;; greg@346: greg@346: *) greg@346: echo "postinst called with unknown argument \`$1'" >&2 greg@346: exit 1 greg@346: ;; greg@346: esac greg@346: greg@346: # dh_installdeb will replace this with shell code automatically greg@346: # generated by other debhelper scripts. greg@346: greg@346: #DEBHELPER# greg@346: greg@346: exit 0 greg@346: greg@346: