greg@139: #!/bin/sh greg@139: # postinst script for plcopeneditor greg@139: # greg@139: # see: dh_installdeb(1) greg@139: greg@139: set -e greg@139: greg@139: # summary of how this script can be called: greg@139: # * `configure' greg@139: # * `abort-upgrade' greg@139: # * `abort-remove' `in-favour' greg@139: # greg@139: # * `abort-remove' greg@139: # * `abort-deconfigure' `in-favour' greg@139: # `removing' greg@139: # greg@139: # for details, see http://www.debian.org/doc/debian-policy/ or greg@139: # the debian-policy package greg@139: greg@139: greg@139: case "$1" in greg@139: configure) greg@139: if ! [ -d "/usr/bin" ]; then greg@139: mkdir /usr/bin greg@139: fi greg@139: ln -sf /usr/share/plcopeneditor/PLCOpenEditor.py /usr/bin/plcopeneditor greg@139: chmod 755 /usr/share/plcopeneditor/PLCOpenEditor.py greg@139: ;; greg@139: greg@139: abort-upgrade|abort-remove|abort-deconfigure) greg@139: ;; greg@139: greg@139: *) greg@139: echo "postinst called with unknown argument \`$1'" >&2 greg@139: exit 1 greg@139: ;; greg@139: esac greg@139: greg@139: # dh_installdeb will replace this with shell code automatically greg@139: # generated by other debhelper scripts. greg@139: greg@139: #DEBHELPER# greg@139: greg@139: exit 0 greg@139: greg@139: