#! /bin/sh
 
pkg=grep

set -e

if [ ! "$1" = "configure" ]; then
	exit 0
fi

install-info --quiet \
	--section "General commands" "General commands" \
	/usr/share/info/grep.info.gz

if [ -d /usr/doc -a ! -e /usr/doc/$pkg -a -d /usr/share/doc/$pkg ] ; then
	ln -s ../share/doc/$pkg /usr/doc/$pkg
fi


