infodir=/usr/share/info filelist=(qingy.info.gz) post_install() { for file in ${filelist[@]}; do install-info $infodir/$file $infodir/dir 2> /dev/null done echo '==> To setup qingy, read /usr/share/doc/qingy/README' } post_upgrade() { for file in ${filelist[@]}; do install-info $infodir/$file $infodir/dir 2> /dev/null done } pre_remove() { for file in ${filelist[@]}; do install-info --delete $infodir/$file $infodir/dir 2> /dev/null done }