debian/postrm
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Fri, 06 May 2016 11:01:21 +0300
changeset 1006 0668ba32de98
parent 171 59f5197b088a
permissions -rwxr-xr-x
fix C compilation warning about function prototype in __SET_EXTERNAL

Example warning:
./POUS.c:1220:3: error: function declaration isn't a prototype [-Werror=strict-prototypes]
__SET_EXTERNAL(data__->,KN_AUT,,__GET_VAR(data__->KEY_AUT.STATE_OUT));
^
compilation terminated due to -Wfatal-errors.
cc1: all warnings being treated as errors
171
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
     1
#!/bin/sh
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
     2
# postrm script for canfestival-objdictedit
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
     3
#
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
     4
# see: dh_installdeb(1)
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
     5
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
     6
set -e
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
     7
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
     8
MATIEC=/usr/bin/iec2c
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
     9
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    10
case "$1" in
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    11
    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    12
	
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    13
	if [ -f "$MATIEC" ]; then
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    14
		rm $MATIEC
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    15
	fi
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    16
	;;
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    17
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    18
    *)
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    19
        echo "postrm called with unknown argument \`$1'" >&2
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    20
        exit 1
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    21
    ;;
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    22
esac
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    23
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    24
# dh_installdeb will replace this with shell code automatically
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    25
# generated by other debhelper scripts.
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    26
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    27
#DEBHELPER#
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    28
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    29
exit 0
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    30
59f5197b088a updated : debian package scripts
greg
parents:
diff changeset
    31