1275970Scy#! /bin/sh 2275970Scy 3275970Scy# Look at the file specified in $1 to see if it contains 'no --help'. 4275970Scy# If it does: 5275970Scy# - Squawk 6275970Scy# - rename the file to ($1)- 7275970Scy# - exit with a non-zero status. 8275970Scy# otherwise: 9275970Scy# - exit with a 0 status. 10275970Scy 11275970Scyif test ! -f $1 12275970Scythen 13275970Scy echo "$0: $1 is not a regular file!" 2>&3 14275970Scy exit 1 15275970Scyfi 16275970Scy 17275970Scyif grep -q 'no --help' $1 18275970Scythen 19275970Scy echo "$0: $1 contains 'no --help'!" 2>&3 20275970Scy mv ${1} ${1}- 21275970Scy exit 1 22275970Scyfi 23