debian/canfestival-virtual.postrm
author greg
Wed, 15 Jul 2009 17:17:47 +0200
changeset 559 8543e7edae4a
parent 533 4d50417dab22
child 579 3126da40d469
permissions -rwxr-xr-x
Remove old entries in visual studio files
Fix some bugs in CANOpenShell
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
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    24
case "$1" in
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    25
    configure)
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    26
    ;;
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    27
	
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    28
    remove|purge)
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    29
    ldconfig
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    30
    cd /usr/lib
533
4d50417dab22 updated : debian package scripts
greg
parents: 531
diff changeset
    31
	DLL_LIST=
531
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    32
	FILES=
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    33
	for file in libcanfestival_can*
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    34
	do
533
4d50417dab22 updated : debian package scripts
greg
parents: 531
diff changeset
    35
		DLL_LIST="'$file',""$DLL_LIST"
531
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    36
	done
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    37
	cat $CF_CONFIG_TEMP > $CF_CONFIG
533
4d50417dab22 updated : debian package scripts
greg
parents: 531
diff changeset
    38
	echo "DLL_LIST=[$DLL_LIST]" >> $CF_CONFIG
531
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
    abort-upgrade|abort-remove|abort-deconfigure)
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    42
    ;;
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    43
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    44
    *)
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    45
        echo "postinst called with unknown argument \`$1'" >&2
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    46
        exit 1
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    47
    ;;
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    48
esac
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    49
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    50
# dh_installdeb will replace this with shell code automatically
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    51
# generated by other debhelper scripts.
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    52
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    53
#DEBHELPER#
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    54
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    55
exit 0
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    56
f912f8d26e98 updated : debian package scripts
greg
parents:
diff changeset
    57