debian/canfestival-peak.postrm
author lbessard
Tue, 24 Mar 2009 10:50:28 +0100
changeset 543 ea6cc9b95838
parent 533 4d50417dab22
child 579 3126da40d469
permissions -rwxr-xr-x
Bug with wxRadioButton on Windows fixed
533
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
     1
#!/bin/sh
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
     2
# postinst script for canfestival
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
     3
#
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
     4
# see: dh_installdeb(1)
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
     5
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
     6
set -e
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
     7
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
     8
# summary of how this script can be called:
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
     9
#        * <postinst> `configure' <most-recently-configured-version>
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    10
#        * <old-postinst> `abort-upgrade' <new version>
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    11
#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    12
#          <new-version>
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    13
#        * <postinst> `abort-remove'
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    14
#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    15
#          <failed-install-package> <version> `removing'
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    16
#          <conflicting-package> <version>
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    17
# for details, see http://www.debian.org/doc/debian-policy/ or
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    18
# the debian-policy package
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    19
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    20
DLL_LIST=
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    21
CF_CONFIG=/usr/share/CanFestival-3/objdictgen/canfestival_config.py
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    22
CF_CONFIG_TEMP=/usr/share/CanFestival-3/objdictgen/canfestival_config_ori.py
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    23
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    24
case "$1" in
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    25
    configure)
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    26
    ;;
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    27
	
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    28
    remove|purge)
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    29
    ldconfig
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    30
    cd /usr/lib
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    31
    cd /usr/lib
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    32
	DLL_LIST=
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    33
	FILES=
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    34
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    35
	for file in libcanfestival_can*
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    36
	do
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    37
		DLL_LIST="'$file',""$DLL_LIST"
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    38
	done
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    39
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    40
	cat $CF_CONFIG_TEMP > $CF_CONFIG
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    41
	echo "DLL_LIST=[$DLL_LIST]" >> $CF_CONFIG
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    42
	;;
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    43
    
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    44
    abort-upgrade|abort-remove|abort-deconfigure)
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    45
    ;;
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    46
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    47
    *)
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    48
        echo "postinst called with unknown argument \`$1'" >&2
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    49
        exit 1
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    50
    ;;
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    51
esac
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    52
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    53
# dh_installdeb will replace this with shell code automatically
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    54
# generated by other debhelper scripts.
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    55
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    56
#DEBHELPER#
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    57
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    58
exit 0
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    59
4d50417dab22 updated : debian package scripts
greg
parents:
diff changeset
    60