关于Berkelay数据库的共享源码

源代码在线查看: chk.code

软件大小: 14860 K
上传用户: mengcong18
关键词: Berkelay 数据库 源码
下载地址: 免注册下载 普通下载 VIP

相关代码

				#!/bin/sh -				#				# $Id: chk.code,v 12.1 2005/10/15 15:25:05 bostic Exp $				#				# Check to make sure that the code samples in the documents build.								d=../../../db_docs								[ -d $d ] || {					echo 'FAIL: cannot find source distribution directory.'					exit 1				}				[ -f ../libdb.a ] || (cd .. && make libdb.a) || {					echo 'FAIL: unable to find or build libdb.a'					exit 1				}								exitv=0				for i in `find $d -name '*.cs' | sed '/\/ref_xml\//d'`; do					echo "	compiling $i"					sed -e 's/m4_include(\(.*\))/#include /g' \					    -e 's/m4_[a-z]*[(\[)]*//g' \					    -e 's/(\[//g' \					    -e '/argv/!s/])//g' \					    -e 's/dnl//g' \					    -e 's/__GT__/>/g' \					    -e 's/__LB__/[/g' \					    -e 's/__LT__/					    -e 's/__RB__/]/g' < $i > t.c					if cc -pthread -Wall -Werror -I.. t.c ../libdb.a -o t; then						:					else						echo "FAIL: unable to compile $i"						exitv=1					fi				done								exit $exitv							

相关资源