Files
mongo/dist/s_getopt
2015-07-07 12:07:23 +10:00

17 lines
384 B
Bash
Executable File

#! /bin/sh
t=__wt.$$
trap 'rm -f $t' 0 1 2 3 13 15
# Complain if someone uses the wrong getopt.
find ../src ../test ../bench -name '*.c' | xargs egrep '[^a-z_]getopt\(' > $t
test -s $t && {
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
echo 'Calls to the C library version of getopt.'
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
cat $t
exit 1
}
exit 0