summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/dist/s_getopt
blob: 17e65f37c69d3427ba174f4754a23d3cf3dfe409 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /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