debian/canfestival-peak.postinst
author greg
Wed, 15 Jul 2009 09:32:35 +0200
changeset 555 ee24dcbd3e64
parent 533 4d50417dab22
child 579 3126da40d469
permissions -rw-r--r--
Add new example : CANOpen shell
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
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
     8
# summary of how this script can be called:
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
     9
#        * <postinst> `configure' <most-recently-configured-version>
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    10
#        * <old-postinst> `abort-upgrade' <new version>
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    11
#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    12
#          <new-version>
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    13
#        * <postinst> `abort-remove'
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    14
#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    15
#          <failed-install-package> <version> `removing'
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    16
#          <conflicting-package> <version>
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    17
# for details, see http://www.debian.org/doc/debian-policy/ or
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    18
# the debian-policy package
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    19
533
4d50417dab22 updated : debian package scripts
greg
parents: 346
diff changeset
    20
DLL_LIST=
4d50417dab22 updated : debian package scripts
greg
parents: 346
diff changeset
    21
CF_CONFIG=/usr/share/CanFestival-3/objdictgen/canfestival_config.py
4d50417dab22 updated : debian package scripts
greg
parents: 346
diff changeset
    22
CF_CONFIG_TEMP=/usr/share/CanFestival-3/objdictgen/canfestival_config_ori.py
346
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    23
case "$1" in
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    24
    configure)
533
4d50417dab22 updated : debian package scripts
greg
parents: 346
diff changeset
    25
    ldconfig
4d50417dab22 updated : debian package scripts
greg
parents: 346
diff changeset
    26
    cd /usr/lib
4d50417dab22 updated : debian package scripts
greg
parents: 346
diff changeset
    27
    DLL_LIST=
4d50417dab22 updated : debian package scripts
greg
parents: 346
diff changeset
    28
	FILES=
4d50417dab22 updated : debian package scripts
greg
parents: 346
diff changeset
    29
	for file in libcanfestival_can*
4d50417dab22 updated : debian package scripts
greg
parents: 346
diff changeset
    30
	do
4d50417dab22 updated : debian package scripts
greg
parents: 346
diff changeset
    31
		DLL_LIST="'$file',""$DLL_LIST"
4d50417dab22 updated : debian package scripts
greg
parents: 346
diff changeset
    32
	done
4d50417dab22 updated : debian package scripts
greg
parents: 346
diff changeset
    33
	cat $CF_CONFIG_TEMP > $CF_CONFIG
4d50417dab22 updated : debian package scripts
greg
parents: 346
diff changeset
    34
	echo "DLL_LIST=[$DLL_LIST]" >> $CF_CONFIG
346
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
	
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    37
    abort-upgrade|abort-remove|abort-deconfigure)
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    38
    ;;
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    39
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
        echo "postinst called with unknown argument \`$1'" >&2
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    42
        exit 1
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    43
    ;;
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    44
esac
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    45
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    46
# dh_installdeb will replace this with shell code automatically
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    47
# generated by other debhelper scripts.
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    48
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    49
#DEBHELPER#
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    50
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    51
exit 0
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    52
59dbdcc99264 add debian directory to create debian binary packages
greg
parents:
diff changeset
    53