Annotation of embedaddon/ntp/scripts/check--help, revision 1.1
1.1 ! misho 1: #! /bin/sh
! 2:
! 3: # Look at the file specified in $1 to see if it contains 'no --help'.
! 4: # If it does:
! 5: # - Squawk
! 6: # - rename the file to ($1)-
! 7: # - exit with a non-zero status.
! 8: # otherwise:
! 9: # - exit with a 0 status.
! 10:
! 11: if test ! -f $1
! 12: then
! 13: echo "$0: $1 is not a regular file!" 2>&3
! 14: exit 1
! 15: fi
! 16:
! 17: if grep -q 'no --help' $1
! 18: then
! 19: echo "$0: $1 contains 'no --help'!" 2>&3
! 20: mv ${1} ${1}-
! 21: exit 1
! 22: fi
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>