12b15cb3dSCy Schubert#! /bin/sh 22b15cb3dSCy Schubert 32b15cb3dSCy Schubert# Look at the file specified in $1 to see if it contains 'no --help'. 42b15cb3dSCy Schubert# If it does: 52b15cb3dSCy Schubert# - Squawk 62b15cb3dSCy Schubert# - rename the file to ($1)- 72b15cb3dSCy Schubert# - exit with a non-zero status. 82b15cb3dSCy Schubert# otherwise: 92b15cb3dSCy Schubert# - exit with a 0 status. 102b15cb3dSCy Schubert 112b15cb3dSCy Schubertif test ! -f $1 122b15cb3dSCy Schubertthen 13*052d159aSCy Schubert echo "$0: $1 is not a regular file!" 1>&2 142b15cb3dSCy Schubert exit 1 152b15cb3dSCy Schubertfi 162b15cb3dSCy Schubert 172b15cb3dSCy Schubertif grep -q 'no --help' $1 182b15cb3dSCy Schubertthen 19*052d159aSCy Schubert echo "$0: $1 contains 'no --help'!" 1>&2 202b15cb3dSCy Schubert mv ${1} ${1}- 212b15cb3dSCy Schubert exit 1 222b15cb3dSCy Schubertfi 23