+2005-04-17 Michael Poole <mdpoole@troilus.org>
+
+ * tools/linesync/linesync.sh: Fix typo comment. Check for
+ multiple blocks per line in the linesync input.
+
2005-04-17 Dan <daniel@undernet.org>
* tools/linesync/linesync.sh: Update to support new syntax and to
exit 1
fi
-# Check wether the file contains any disallowed .conf lines
+# Check whether the file contains any disallowed .conf lines
bad_lines=`egrep '^[^'$ALLOWED_LINES'|#]+' $TMPFILE`
if [ ! -z "$bad_lines" ]; then
echo "The file downloaded in $TMPFILE contains the following disallowed line(s):"
exit 1
fi
+# Check whether somebody tried to sneak a second block onto some line
+bad_lines=`egrep -i '}[ ]*;[ ]*[a-z]+[ ]*{' $TMPFILE`
+if [ ! -z "$bad_lines" ] ; then
+ echo "The file downloaded in $TMPFILE contains the following multi-block line(s):"
+ echo $bad_lines
+ exit 1
+fi
+
# check our ircd.conf
ircd_setup=`egrep '^# (BEGIN|END) LINESYNC$' $cpath|wc -l`
if [ $ircd_setup != 2 ]; then