#!/bin/sh

#
# This script "eats" GRN include statements.  If you use it, you can print
# POSTGRES documentation without GRN, although you will have no illustrations.
# It can be used as a substitute for GRN in the print scripts.
#

awk 'BEGIN {eat=0; unset=0} \
/^\.GS.*/ {eat=1}\
/^\.GE.*/ {unset=1} \
/.*/ {if (!eat) print; if (unset) eat=0; unset=0;}'
