blob: 4786b6fd28ae8b5dbe3a3880d4bb0f3cdc834e42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#! /bin/sh
# Build a list of internal function prototypes.
t=__wt.$$
trap 'rm -f $t; exit 0' 0 1 2 3 13 15
(
echo '/* DO NOT EDIT: automatically built by dist/s_prototypes. */'
for i in `sed -e '/^[a-z]/! d' filelist`; do
sed -n \
-e '/^__wt_[a-z]/!{' \
-e h \
-e d \
-e '}' \
-e x \
-e '/^static/d' \
-e x \
-e ': loop' \
-e H \
-e n \
-e '/^{/!b loop' \
-e x \
-e 's/$/;/p' \
< ../$i
done) > $t
f=../inc_posix/extern.h
cmp $t $f > /dev/null 2>&1 ||
(echo "Building $f" && rm -f $f && cp $t $f && chmod 444 $f)
|