diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2016-12-17 21:28:53 -0800 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2016-12-17 21:28:53 -0800 |
commit | 54df2afaa61c6a03cbb4a33c9b90fa572b6d07b8 (patch) | |
tree | 18147b92b969d25ffbe61935fb63035cac820dd0 /db-4.8.30/dist/s_apiflags |
Berkeley DB 4.8 with rust build script for linux.
Diffstat (limited to 'db-4.8.30/dist/s_apiflags')
-rwxr-xr-x | db-4.8.30/dist/s_apiflags | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/db-4.8.30/dist/s_apiflags b/db-4.8.30/dist/s_apiflags new file mode 100755 index 0000000..fa8834d --- /dev/null +++ b/db-4.8.30/dist/s_apiflags @@ -0,0 +1,24 @@ +#!/bin/sh - +# $Id$ +# +# Build the automatically generated API flag #defines. + +msgc="/* DO NOT EDIT: automatically built by dist/s_apiflags. */" + +b=/tmp/api_flags_binary +t=/tmp/__db_a + +trap 'rm -f $b $t; exit 0' 0 +trap 'rm -f $b $t; exit 1' 1 2 3 13 15 + +cc api_flags.c -o $b || { + echo 's_apiflags: unable to compile api_flags.c' + exit 1 +} + +(echo "$msgc" + $b < api_flags) > $t + +f=../dbinc_auto/api_flags.in +cmp $f $t > /dev/null 2>&1 || + (echo "Building $f" && rm -f $f && cp $t $f && chmod 444 $f) |