diff options
Diffstat (limited to 'pcr/emacs-with-editor-git/emacs-with-editor-git.install')
-rw-r--r-- | pcr/emacs-with-editor-git/emacs-with-editor-git.install | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pcr/emacs-with-editor-git/emacs-with-editor-git.install b/pcr/emacs-with-editor-git/emacs-with-editor-git.install new file mode 100644 index 000000000..10c08d4ce --- /dev/null +++ b/pcr/emacs-with-editor-git/emacs-with-editor-git.install @@ -0,0 +1,24 @@ +infodir=/usr/share/info +filelist=(with-editor.info) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file $infodir/dir 2> /dev/null + done +} + +op=$1 +shift +$op $* |