File: checkspaces

package info (click to toggle)
gp2c 0.0.11pl1-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 2,792 kB
  • sloc: ansic: 8,398; sh: 1,687; lex: 340; yacc: 215; makefile: 140
file content (19 lines) | stat: -rwxr-xr-x 524 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh
CFILES="`echo src/*.[chyl] |sed -e 's,src/\(parse\|lang\)\.[ch],,g'`"
OFILES="ChangeLog AUTHORS README NEWS BUGS doc/gp2c.tex doc/type.tex"
MFILES="*/Makefile.am Makefile.am"
SCRIPTS="`echo scripts/*.in |sed -e 's,scripts/Makefile.in,,g'`"
err=0;
if grep ' $' $CFILES $OFILES $MFILES $SCRIPTS; then
  echo "BUG: trailing spaces found."
  err=1;
fi
if grep '	' $CFILES $OFILES; then
  echo "BUG: TAB found."
  err=1;
fi
if grep '	$' $MFILES $SCRIPTS; then
  echo "BUG: TAB found in scripts."
  err=1;
fi
exit $err