From 54df2afaa61c6a03cbb4a33c9b90fa572b6d07b8 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Sat, 17 Dec 2016 21:28:53 -0800 Subject: Berkeley DB 4.8 with rust build script for linux. --- db-4.8.30/dist/s_apiflags | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 db-4.8.30/dist/s_apiflags (limited to 'db-4.8.30/dist/s_apiflags') 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) -- cgit v1.2.3