blob: 6e78222b6fef240f08e9f609bc64f9e1216be022 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
infodir=usr/share/info
filelist=(bovine.info.gz cedet.info.gz cogre.info.gz ede.info.gz eieio.info.gz grammar-fw.info.gz semantic-appdev.info.gz semantic.info.gz semantic-langdev.info semantic-user.info.gz speedbar.info.gz srecode.info.gz wisent.info.gz)
post_install() {
cat <<EOF
==> Put this in your \$HOME/.emacs file to enable CEDET:
==> (load-file "/usr/share/emacs/site-lisp/cedet/cedet-devel-load.el")
==> (semantic-load-enable-code-helpers)
EOF
[[ -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
}
# vim:set ts=2 sw=2 et:
|