debian/canfestival-peak.postinst
author laurent
Wed, 14 Oct 2009 10:13:00 +0200
changeset 608 daa1e1c3fba4
parent 579 3126da40d469
permissions -rw-r--r--
Removing superfluous event.Skip()
346
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
     1
#!/bin/sh
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
     2
# postinst script for canfestival
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
     3
#
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
     4
# see: dh_installdeb(1)
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
     5
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
     6
set -e
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
     7
533
4d50417dab22 updated : debian package scripts
greg
parents: 346
diff changeset
     8
DLL_LIST=
4d50417dab22 updated : debian package scripts
greg
parents: 346
diff changeset
     9
CF_CONFIG=/usr/share/CanFestival-3/objdictgen/canfestival_config.py
4d50417dab22 updated : debian package scripts
greg
parents: 346
diff changeset
    10
CF_CONFIG_TEMP=/usr/share/CanFestival-3/objdictgen/canfestival_config_ori.py
579
3126da40d469 Fixed : postrm bug when upgrade package
greg
parents: 533
diff changeset
    11
346
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    12
case "$1" in
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    13
    configure)
533
4d50417dab22 updated : debian package scripts
greg
parents: 346
diff changeset
    14
    ldconfig
579
3126da40d469 Fixed : postrm bug when upgrade package
greg
parents: 533
diff changeset
    15
    
3126da40d469 Fixed : postrm bug when upgrade package
greg
parents: 533
diff changeset
    16
	# Find canfestival driver library in /usr/lib
3126da40d469 Fixed : postrm bug when upgrade package
greg
parents: 533
diff changeset
    17
	cd /usr/lib
533
4d50417dab22 updated : debian package scripts
greg
parents: 346
diff changeset
    18
	for file in libcanfestival_can*
4d50417dab22 updated : debian package scripts
greg
parents: 346
diff changeset
    19
	do
4d50417dab22 updated : debian package scripts
greg
parents: 346
diff changeset
    20
		DLL_LIST="'$file',""$DLL_LIST"
4d50417dab22 updated : debian package scripts
greg
parents: 346
diff changeset
    21
	done
579
3126da40d469 Fixed : postrm bug when upgrade package
greg
parents: 533
diff changeset
    22
	
3126da40d469 Fixed : postrm bug when upgrade package
greg
parents: 533
diff changeset
    23
	# copy template config and add the DLL_LIST 
3126da40d469 Fixed : postrm bug when upgrade package
greg
parents: 533
diff changeset
    24
	# do this to display available canfestival plugin list choice in beremiz
533
4d50417dab22 updated : debian package scripts
greg
parents: 346
diff changeset
    25
	cat $CF_CONFIG_TEMP > $CF_CONFIG
4d50417dab22 updated : debian package scripts
greg
parents: 346
diff changeset
    26
	echo "DLL_LIST=[$DLL_LIST]" >> $CF_CONFIG
346
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    27
	;;
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    28
	
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    29
    abort-upgrade|abort-remove|abort-deconfigure)
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    30
    ;;
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    31
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    32
    *)
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    33
        echo "postinst called with unknown argument \`$1'" >&2
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    34
        exit 1
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    35
    ;;
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    36
esac
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    37
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    38
# dh_installdeb will replace this with shell code automatically
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    39
# generated by other debhelper scripts.
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    40
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    41
#DEBHELPER#
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    42
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    43
exit 0
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    44
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    45