⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chk.code

📁 linux 下的源代码分析阅读器 red hat公司新版
💻 CODE
字号:
#!/bin/sh -## $Id: chk.code,v 12.2 2007/04/20 13:50:31 bostic Exp $## Check to make sure that the code samples in the documents build.d=../../docs_src[ -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=0for i in `find $d -name '*.cs' | sed '/\/ref_xml\//d'`; do	echo "	compiling $i"	sed -e 's/m4_include(\(.*\))/#include <\1>/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__/</g' \	    -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	fidoneexit $exitv

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -