Home | History | Annotate | Line # | Download | only in build
      1      1.1  christos #! /bin/sh
      2      1.1  christos 
      3      1.1  christos # Look at the file specified in $1 to see if it contains 'no --help'.
      4      1.1  christos # If it does:
      5      1.1  christos # - Squawk
      6      1.1  christos # - rename the file to ($1)-
      7      1.1  christos # - exit with a non-zero status.
      8      1.1  christos # otherwise:
      9      1.1  christos # - exit with a 0 status.
     10      1.1  christos 
     11      1.1  christos if test ! -f $1
     12      1.1  christos then
     13  1.1.1.2  christos 	echo "$0: $1 is not a regular file!" 1>&2
     14      1.1  christos 	exit 1
     15      1.1  christos fi
     16      1.1  christos 
     17      1.1  christos if grep -q 'no --help' $1
     18      1.1  christos then
     19  1.1.1.2  christos 	echo "$0: $1 contains 'no --help'!" 1>&2
     20      1.1  christos 	mv ${1} ${1}-
     21      1.1  christos 	exit 1
     22      1.1  christos fi
     23