diff --git a/installer/ubuntu/debian/postinst b/installer/ubuntu/debian/postinst new file mode 100644 index 00000000..9cc9d287 --- /dev/null +++ b/installer/ubuntu/debian/postinst @@ -0,0 +1,41 @@ +#!/bin/sh +# postinst script for filebot +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + # create symlink for filebot cmdline tool + ln -s /opt/filebot/bin/filebot.sh /usr/local/bin/filebot + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/installer/ubuntu/debian/prerm b/installer/ubuntu/debian/prerm new file mode 100644 index 00000000..e8a63a76 --- /dev/null +++ b/installer/ubuntu/debian/prerm @@ -0,0 +1,40 @@ +#!/bin/sh +# prerm script for filebot +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) + # remove symlink for filebot cmdline tool + rm /usr/local/bin/filebot + ;; + + failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/installer/ubuntu/debian/source/options b/installer/ubuntu/debian/source/options index 097e88a4..db111cab 100644 --- a/installer/ubuntu/debian/source/options +++ b/installer/ubuntu/debian/source/options @@ -1,4 +1,4 @@ tar-ignore = "NULL" -diff-ignore= "^NULL$" +diff-ignore = "^NULL$" extend-diff-ignore = "^NULL$" compression = "xz"