diff options
author | Esben Haabendal | 2017-12-15 21:28:21 +0100 |
---|---|---|
committer | Esben Haabendal | 2017-12-15 21:28:21 +0100 |
commit | fa18314109ace6f14c630908a8542e0ccf5046d3 (patch) | |
tree | a7025295faac104d3cf9ce148d4cd4c9a9f02863 /emacs-magit-popup.install | |
download | aur-fa18314109ace6f14c630908a8542e0ccf5046d3.tar.gz |
Initial commit
Diffstat (limited to 'emacs-magit-popup.install')
-rw-r--r-- | emacs-magit-popup.install | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/emacs-magit-popup.install b/emacs-magit-popup.install new file mode 100644 index 000000000000..10c08d4ce5b4 --- /dev/null +++ b/emacs-magit-popup.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 $* |