blob: 1524675b4473f7059d3f357391e832d696e0d160 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#! /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
|