2010-03-13 23:25:19 +08:00
|
|
|
infodir=/usr/share/info
|
|
|
|
filelist=(tar.info tar.info-1 tar.info-2)
|
|
|
|
|
|
|
|
post_install() {
|
2010-04-04 22:20:41 +08:00
|
|
|
[ -x usr/bin/install-info ] || return 0
|
2010-03-13 23:25:19 +08:00
|
|
|
for file in ${filelist[@]}; do
|
2010-04-04 22:20:41 +08:00
|
|
|
install-info $infodir/$file.gz $infodir/dir 2> /dev/null
|
2010-03-13 23:25:19 +08:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
post_upgrade() {
|
|
|
|
post_install $1
|
|
|
|
}
|
|
|
|
|
|
|
|
pre_remove() {
|
2010-04-04 22:20:41 +08:00
|
|
|
[ -x usr/bin/install-info ] || return 0
|
2010-03-13 23:25:19 +08:00
|
|
|
for file in ${filelist[@]}; do
|
2010-04-04 22:20:41 +08:00
|
|
|
install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
|
2010-03-13 23:25:19 +08:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|