diff options
Diffstat (limited to 'extra/enscript/enscript.install')
-rw-r--r-- | extra/enscript/enscript.install | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/extra/enscript/enscript.install b/extra/enscript/enscript.install new file mode 100644 index 000000000..18ffbe910 --- /dev/null +++ b/extra/enscript/enscript.install @@ -0,0 +1,15 @@ +infodir=usr/share/info + +post_install() { + [[ -x usr/bin/install-info ]] || return 0 + install-info "$infodir/enscript.info.gz" "$infodir/dir" 2> /dev/null +} + +post_upgrade() { + post_install "$1" +} + +pre_remove() { + [[ -x usr/bin/install-info ]] || return 0 + install-info --delete "$infodir/enscript.info.gz" "$infodir/dir" 2> /dev/null +} |