File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / ntp / scripts / check--help
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:08:38 2012 UTC (12 years, 7 months ago) by misho
Branches: ntp, MAIN
CVS tags: v4_2_6p5p0, v4_2_6p5, HEAD
ntp 4.2.6p5

#! /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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>