core/gdb/gdb.install

21 lines
460 B
Plaintext
Raw Normal View History

2014-06-26 07:54:21 +08:00
infodir=usr/share/info
filelist=(annotate.info gdb.info{,-{1,2,3,4,5,6}} stabs.info)
2010-03-14 23:48:48 +08:00
post_install() {
2014-06-26 07:54:21 +08:00
[[ -x usr/bin/install-info ]] || return 0
2010-03-14 23:48:48 +08:00
for file in ${filelist[@]}; do
install-info $infodir/$file.gz $infodir/dir 2> /dev/null
done
}
post_upgrade() {
post_install $1
}
pre_remove() {
2014-06-26 07:54:21 +08:00
[[ -x usr/bin/install-info ]] || return 0
2010-03-14 23:48:48 +08:00
for file in ${filelist[@]}; do
install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
done
}