#!/bin/sh


if [ "x$GCTLIB" = "x" ]
then
  GCTLIB=`pwd`/../../../
  PATH=.:`pwd`/../../..:$PATH
  export PATH
fi

announce()
{
	echo "$INDENT" " $1"
}

# Note:  use sed to strip blanks because not all systems have same version
# of diff.
noblanks()
{
	sed -e "s/ //g" $1
}

make clean

announce lineno
gct-init $GCTLIB
gct -B$GCTLIB lineno.c
noblanks Tlineno.c > /tmp/lineno.NEW
noblanks lineno.ref > /tmp/lineno.REF
if diff /tmp/lineno.NEW /tmp/lineno.REF
then
	rm /tmp/lineno.NEW /tmp/lineno.REF
fi

exit 0
