freebsd-dev/contrib/ntp/scripts/build/check--help
Cy Schubert 2b15cb3d09 MFV ntp 4.2.8p1 (r258945, r275970, r276091, r276092, r276093, r278284)
Thanks to roberto for providing pointers to wedge this into HEAD.

Approved by:	roberto
2015-03-30 13:30:15 +00:00

23 lines
384 B
Bash
Executable File

#! /bin/sh
# Look at the file specified in $1 to see if it contains 'no --help'.
# If it does:
# - Squawk
# - rename the file to ($1)-
# - exit with a non-zero status.
# otherwise:
# - exit with a 0 status.
if test ! -f $1
then
echo "$0: $1 is not a regular file!" 2>&3
exit 1
fi
if grep -q 'no --help' $1
then
echo "$0: $1 contains 'no --help'!" 2>&3
mv ${1} ${1}-
exit 1
fi