diff options
author | root <root@rshg054.dnsready.net> | 2012-06-14 00:01:48 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-06-14 00:01:48 +0000 |
commit | 35c30674b2b901077a809a6f1d8e5a0115098c8b (patch) | |
tree | bac1c7d0c5b1651fef436eb13be31506b5aa60b1 /community/emacs-nox/emacs-nox.install | |
parent | f46e734fbcd0b4cbae2cff1a017b95e4e8e02d53 (diff) |
Thu Jun 14 00:01:48 UTC 2012
Diffstat (limited to 'community/emacs-nox/emacs-nox.install')
-rw-r--r-- | community/emacs-nox/emacs-nox.install | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/community/emacs-nox/emacs-nox.install b/community/emacs-nox/emacs-nox.install index ea8630090..740640994 100644 --- a/community/emacs-nox/emacs-nox.install +++ b/community/emacs-nox/emacs-nox.install @@ -1,12 +1,15 @@ -info_dir=/usr/share/info -info_files=(ada-mode autotype calc ccmode cl dired-x ebrowse -ediff efaq eintr elisp emacs emacs-mime erc eshell eudc flymake forms -gnus idlwave info message mh-e newsticker org pcl-cvs pgg rcirc reftex -sc ses sieve smtpmail speedbar tramp url vip viper widget woman) +INFO_DIR=usr/share/info + +INFO_FILES=(ada-mode auth autotype calc ccmode cl dbus dired-x ebrowse +ede ediff edt efaq eieio eintr elisp emacs emacs-mime epa erc eshell eudc flymake +forms gnus idlwave info mairix-el message mh-e newsticker nxml-mode +org pcl-cvs pgg rcirc reftex remember sasl sc semantic ses sieve smtpmail +speedbar tramp url vip viper widget woman) post_install() { - for f in ${info_files[@]}; do - install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null + [[ -x usr/bin/install-info ]] || return 0 + for f in ${INFO_FILES[@]}; do + install-info ${INFO_DIR}/$f.gz ${INFO_DIR}/dir 2> /dev/null done } @@ -15,7 +18,8 @@ post_upgrade() { } pre_remove() { - for f in ${info_files[@]}; do - install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null + [[ -x usr/bin/install-info ]] || return 0 + for f in ${INFO_FILES[@]}; do + install-info --delete ${INFO_DIR}/$f.gz ${INFO_DIR}/dir 2> /dev/null done } |