check that first line doesn't contain a name operatingsystem

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12254 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2003-05-08 20:31:48 +00:00
parent 0b41c7fe1e
commit 88055d0c47

View File

@@ -42,6 +42,12 @@ find . -name Makefile.am | while read f; do
y=`dirname $f`/`echo $i | sed 's/[0-9]$/cat&/'`
echo `grog -Tascii $x` \> $y
`grog -Tascii $x` > $y
perl -p -e 'exit 1 if (/NetBSD|FreeBSD|OpenBSD|Linux|OSF|Solaris/); exit 0;' $y
if [ $? != 0 ] ; then
echo "ERROR: catfile $y contains operating sysstem"
head -1 $y
exit 1
fi
done
done