📄 s_recover
字号:
#!/bin/sh -# $Id: s_recover,v 1.14 2002/03/27 04:31:51 bostic Exp $## Build the automatically generated logging/recovery files.. ./RELEASEtmp=/tmp/__db_aloglist=/tmp/__db_bsource=/tmp/__db_cheader=/tmp/__db_dtemplate=/tmp/__db_etrap 'rm -f $tmp $loglist $source $header $template; exit 1' 1 2 3 13 15trap 'rm -f $tmp $loglist $source $header $template; exit 0' 0DIR="db dbreg btree hash qam txn"# Check to make sure we haven't duplicated a log record entry, and build# the list of log record types that the test suite uses.for i in $DIR; do p=none for f in ../$i/*.src; do # Grab the PREFIX; there should only be one per file, and # so it's okay to just take the first. grep '^PREFIX' $f | sed q egrep '^BEGIN[ ]|^IGNORED[ ]|^DEPRECATED[ ]' $f | awk '{print $1 "\t" $2 "\t" $3}' donedone > $loglistgrep -v '^PREFIX' $loglist | awk '{print $2 "\t" $3}' | sort -n -k 2 | uniq -d -f 1 > $tmp[ -s $tmp ] && { echo "DUPLICATE LOG VALUES:" cat $tmp rm -f $tmp exit 1}f=../test/logtrack.listcmp $loglist $f > /dev/null 2>&1 || (echo "Building $f" && rm -f $f && cp $loglist $f && chmod 444 $f)# Build DB's recovery routines.for i in db dbreg btree fileops hash qam txn; do for f in ../$i/*.src; do subsystem=`basename $f .src` awk -f gen_rec.awk \ -v source_file=$source \ -v header_file=$header \ -v template_file=$template < $f f=../dbinc_auto/${subsystem}_auto.h cmp $header $f > /dev/null 2>&1 || (echo "Building $f" && rm -f $f && cp $header $f && chmod 444 $f) f=../$i/${subsystem}_auto.c cmp $source $f > /dev/null 2>&1 || (echo "Building $f" && rm -f $f && cp $source $f && chmod 444 $f) f=template/rec_${subsystem} cmp $template $f > /dev/null 2>&1 || (echo "Building $f" && rm -f $f && cp $template $f && chmod 444 $f) donedone# Build the example application's recovery routines.#(cd ../examples_c/ex_apprec && sh auto_rebuild)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -