head	1.5;
access;
symbols
	rpm-4_4_8-release:1.3.2.2
	rpm-4_4_7-release:1.3.2.2
	db-4_5_20:1.5
	rpm-4_4_6-release:1.3.2.1
	rpm-4_4_5-release:1.3.2.1
	db-4_4_20:1.4
	rpm-4_4_4-release:1.3.2.1
	db-4_4_16:1.4
	rpm-4_4_3-release:1.3.2.1
	db-4_4_11:1.4
	db-4_3_29:1.3
	jbj_before_tklcpatches:1.3
	rpm-4_4_2-release:1.3
	pjones-sparse-experiment:1.4.0.2
	db-4_4_4:1.4
	rpm-4_4_1-release:1.3
	db-4_3_27:1.3
	rpm-4_4-release:1.3
	rpm-4_4:1.3.0.2
	db-4_3_21:1.3
	db-4_3_14:1.3
	db-4_2_52:1.2
	rpm-4_3_1-start:1.2
	rpm-4_3:1.2.0.2
	rpm-4_2_1-release:1.1.1.5
	rpm-4_1_1-release:1.1.1.5
	rpm-4_2-release:1.1.1.5
	rpm-4_2:1.1.1.5.0.2
	postmerge-db-4_1_24-release:1.1.1.5
	premerge-db-4_1_24-release:1.1.1.5
	db-4_1_24-release:1.1.1.5
	pre-db-4_1_24-release:1.1.1.5
	rpm-4_1-release:1.1.1.4
	postmerge-db-4_1_17:1.1.1.5
	premerge-db-4_1_17:1.1.1.5
	db-4_1_17:1.1.1.5
	pre-db-4_1_17:1.1.1.4
	rpm-4_1:1.1.1.4.0.2
	rpm-4_0_4-release:1.1.1.2.2.2
	jbj-before-beecrypt:1.1.1.2.2.2
	postmerge-db-4_0_14:1.1.1.4
	premerge-db-4_0_14:1.1.1.4
	db-4_0_14:1.1.1.4
	pre-db-4_0_14:1.1.1.4
	rpm-4_0_3-release:1.1.1.2.2.1
	postmerge-db-4_0_7:1.1.1.4
	premerge-db-4_0_7:1.1.1.4
	db-4_0_7:1.1.1.4
	pre-db-4_0_7:1.1.1.3
	jbj_b4_rollback:1.1.1.2.2.1
	postmerge-db-3_3_11-release:1.1.1.3
	premerge-db-3_3_11-release:1.1.1.3
	db-3_3_11-release:1.1.1.3
	pre-db-3_3_11-release:1.1.1.2
	rpm-4_0:1.1.1.2.0.2
	postmerge-db-3_3_4-release:1.1.1.2
	premerge-db-3_3_4-release:1.1.1.2
	db-3_3_4-release:1.1.1.2
	pre-db-3_3_4-release:1.1.1.1
	db-3_2_9-release:1.1.1.1
	db-3_2_9-vendor:1.1.1;
locks; strict;
comment	@# @;
expand	@o@;


1.5
date	2006.10.01.20.18.54;	author jbj;	state Exp;
branches;
next	1.4;

1.4
date	2005.02.21.15.53.58;	author jbj;	state Exp;
branches;
next	1.3;

1.3
date	2004.10.16.01.31.55;	author jbj;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	2003.12.15.21.42.42;	author jbj;	state Exp;
branches;
next	1.1;

1.1
date	2001.03.21.18.33.38;	author jbj;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2001.03.21.18.33.38;	author jbj;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2001.05.13.19.58.27;	author jbj;	state Exp;
branches
	1.1.1.2.2.1;
next	1.1.1.3;

1.1.1.3
date	2001.07.23.20.09.05;	author jbj;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2001.10.15.03.47.23;	author jbj;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	2002.08.14.16.31.56;	author jbj;	state Exp;
branches;
next	;

1.1.1.2.2.1
date	2001.07.23.20.31.15;	author jbj;	state Exp;
branches;
next	1.1.1.2.2.2;

1.1.1.2.2.2
date	2002.01.08.04.07.17;	author jbj;	state Exp;
branches;
next	;

1.3.2.1
date	2005.10.28.18.44.32;	author jbj;	state Exp;
branches;
next	1.3.2.2;

1.3.2.2
date	2006.10.01.22.29.21;	author jbj;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Update to db-4.5.20.
@
text
@#!/bin/sh -
#	$Id: s_recover,v 12.1 2006/05/24 16:24:24 sue Exp $
#
# Build the automatically generated logging/recovery files.

header=/tmp/__db_a
loglist=/tmp/__db_b
print=/tmp/__db_c
source=/tmp/__db_d
template=/tmp/__db_e
tmp=/tmp/__db_f

trap 'rm -f /tmp/__db_[abcdef]; exit 1' 1 2 3 13 15
trap 'rm -f /tmp/__db_[abcdef]; exit 0' 0

DIR="db dbreg btree fileops hash qam rep 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
	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 "\t" $4}'
	done
done > $loglist
grep -v '^PREFIX' $loglist |
    awk '{print $2 "\t" $3 "\t" $4}' | sort -n -k 3 | uniq -d -f 1 > $tmp
[ -s $tmp ] && {
	echo "DUPLICATE LOG VALUES:"
	cat $tmp
	rm -f $tmp
	exit 1
}
f=../test/logtrack.list
cmp $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 $DIR; do
	for f in ../$i/*.src; do
		subsystem=`basename $f .src`
		awk -f gen_rec.awk \
		    -v header_file=$header \
		    -v print_file=$print\
		    -v source_file=$source \
		    -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=../$i/${subsystem}_autop.c
		cmp $print $f > /dev/null 2>&1 ||
		    (echo "Building $f" &&
		    rm -f $f && cp $print $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)
	done
done

# Build the example application's recovery routines.
(cd ../examples_c/ex_apprec && sh auto_rebuild)
@


1.4
log
@Upgrade to db-4.4.4.
@
text
@d2 1
a2 1
#	$Id: s_recover,v 12.0 2004/11/17 03:43:35 bostic Exp $
d26 1
a26 1
		    awk '{print $1 "\t" $2 "\t" $3}'
d30 1
a30 1
    awk '{print $2 "\t" $3}' | sort -n -k 2 | uniq -d -f 1 > $tmp
@


1.3
log
@... and in with the New ...
@
text
@d2 1
a2 1
#	$Id: s_recover,v 1.17 2004/06/17 17:35:19 bostic Exp $
@


1.3.2.1
log
@Update to db-4.4.11.
@
text
@d2 1
a2 1
#	$Id: s_recover,v 12.0 2004/11/17 03:43:35 bostic Exp $
@


1.3.2.2
log
@Merge db-4.5.20 onto rpm-4_4 branch.
@
text
@d2 1
a2 1
#	$Id: s_recover,v 12.1 2006/05/24 16:24:24 sue Exp $
d26 1
a26 1
		    awk '{print $1 "\t" $2 "\t" $3 "\t" $4}'
d30 1
a30 1
    awk '{print $2 "\t" $3 "\t" $4}' | sort -n -k 3 | uniq -d -f 1 > $tmp
@


1.2
log
@- upgrade to db-4.2.52.
@
text
@d2 1
a2 1
#	$Id: s_recover,v 1.14 2002/03/27 04:31:51 bostic Exp $
d6 1
a6 1
tmp=/tmp/__db_a
d8 2
a9 2
source=/tmp/__db_c
header=/tmp/__db_d
d11 1
d13 2
a14 2
trap 'rm -f $tmp $loglist $source $header $template; exit 1' 1 2 3 13 15
trap 'rm -f $tmp $loglist $source $header $template; exit 0' 0
d16 1
a16 1
DIR="db dbreg btree hash qam txn"
a20 1
	p=none
a26 1

d42 1
a42 1
for i in db dbreg btree fileops hash qam txn; do
d46 2
a48 1
		    -v header_file=$header \
d59 4
@


1.1
log
@Initial revision
@
text
@d2 1
a2 1
#	$Id: s_recover,v 1.3 2000/03/30 05:24:36 krinsky Exp $
d6 5
a10 1
DIR="db btree hash log qam txn"
d12 2
a13 4
t=/tmp/__db_$$
loglist=../test/logtrack.list
rm -f $t
rm -f $loglist
d15 1
a15 1
trap 'rm -f $t; exit 1' 1 2 3 13 15
d24 2
a25 2
		grep '^PREFIX' $f | head -1
		egrep '^DEPRECATED[	 ]|^BEGIN[	 ]' $f | \
d30 3
a32 3
grep -v '^PREFIX' $loglist | awk '{print $2 "\t" $3}' | sort +1 -n | \
    uniq -d -f 1 > $t
[ -s $t ] && {
d34 2
a35 2
	cat $t
	rm -f $t
d38 3
a40 1
rm -f $t
d42 2
a43 1
for i in db btree hash log qam txn; do
a45 7
		header_file=../include/${subsystem}_auto.h
		source_file=../$i/${subsystem}_auto.c
		template_file=template/rec_${subsystem}
		template_source=.

		echo "Building $source_file, $header_file, $template_file"
		rm -f $header_file $source_file $template_file
d47 16
a62 6
		    -v subsystem=$subsystem \
		    -v source_file=$source_file \
		    -v header_file=$header_file \
		    -v template_file=$template_file \
		    -v template_dir=. < $f
		chmod 444 $header_file $source_file $template_file
d65 3
@


1.1.1.1
log
@db-3.2.9
@
text
@@


1.1.1.2
log
@track: auto import
@
text
@d2 1
a2 1
#	Id: s_recover,v 1.4 2001/04/10 20:43:58 bostic Exp 
d41 1
a41 1
		header_file=../include_auto/${subsystem}_auto.h
d43 2
a44 1
		template_file=rec_${subsystem}
d47 1
a47 1
		rm -f $header_file $source_file template/$template_file
d52 3
a54 2
		    -v template_file=$template_file < $f
		chmod 444 $header_file $source_file template/$template_file
@


1.1.1.2.2.1
log
@Merge db-3.3.11 onto rpm-4_0 branch.
@
text
@d2 1
a2 1
#	$Id: s_recover,v 1.6 2001/06/15 16:38:12 bostic Exp $
d6 1
a6 5
tmp=/tmp/__db_a$$
loglist=/tmp/__db_b$$
source=/tmp/__db_c$$
header=/tmp/__db_d$$
template=/tmp/__db_e$$
d8 4
a11 2
rm -f $tmp $loglist $source $header $template
trap 'rm -f $tmp $loglist $source $header $template; exit 1' 1 2 3 13 15
d13 1
a13 1
DIR="db btree hash log qam txn"
d23 1
a23 1
		egrep '^BEGIN[	 ]|^IGNORED[	 ]|^DEPRECATED[	 ]' $f |
d28 3
a30 3
grep -v '^PREFIX' $loglist |
    awk '{print $2 "\t" $3}' | sort +1 -n | uniq -d -f 1 > $tmp
[ -s $tmp ] && {
d32 2
a33 2
	cat $tmp
	rm -f $tmp
d36 1
a36 4
f=../test/logtrack.list
cmp $loglist $f > /dev/null 2>&1 ||
    (echo "Building $f" && rm -f $f && cp $loglist $f && chmod 444 $f)
rm -f $tmp $loglist
d41 6
d49 4
a52 16
		    -v source_file=$source \
		    -v header_file=$header \
		    -v template_file=$template < $f

		f=../include_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)
a54 2

rm -f $source $header $template
@


1.1.1.2.2.2
log
@Update to db-4.0.14.
@
text
@d2 1
a2 1
#	Id: s_recover,v 1.7 2001/08/19 19:48:00 bostic Exp 
d6 5
a10 5
tmp=/tmp/__db_a
loglist=/tmp/__db_b
source=/tmp/__db_c
header=/tmp/__db_d
template=/tmp/__db_e
d12 1
a13 1
trap 'rm -f $tmp $loglist $source $header $template; exit 0' 0
d41 1
d66 2
@


1.1.1.3
log
@track: auto import
@
text
@d2 1
a2 1
#	Id: s_recover,v 1.6 2001/06/15 16:38:12 bostic Exp 
d6 1
a6 5
tmp=/tmp/__db_a$$
loglist=/tmp/__db_b$$
source=/tmp/__db_c$$
header=/tmp/__db_d$$
template=/tmp/__db_e$$
d8 4
a11 2
rm -f $tmp $loglist $source $header $template
trap 'rm -f $tmp $loglist $source $header $template; exit 1' 1 2 3 13 15
d13 1
a13 1
DIR="db btree hash log qam txn"
d23 1
a23 1
		egrep '^BEGIN[	 ]|^IGNORED[	 ]|^DEPRECATED[	 ]' $f |
d28 3
a30 3
grep -v '^PREFIX' $loglist |
    awk '{print $2 "\t" $3}' | sort +1 -n | uniq -d -f 1 > $tmp
[ -s $tmp ] && {
d32 2
a33 2
	cat $tmp
	rm -f $tmp
d36 1
a36 4
f=../test/logtrack.list
cmp $loglist $f > /dev/null 2>&1 ||
    (echo "Building $f" && rm -f $f && cp $loglist $f && chmod 444 $f)
rm -f $tmp $loglist
d41 6
d49 4
a52 16
		    -v source_file=$source \
		    -v header_file=$header \
		    -v template_file=$template < $f

		f=../include_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)
a54 2

rm -f $source $header $template
@


1.1.1.4
log
@track: auto import
@
text
@d2 1
a2 1
#	Id: s_recover,v 1.7 2001/08/19 19:48:00 bostic Exp 
d6 5
a10 5
tmp=/tmp/__db_a
loglist=/tmp/__db_b
source=/tmp/__db_c
header=/tmp/__db_d
template=/tmp/__db_e
d12 1
a13 1
trap 'rm -f $tmp $loglist $source $header $template; exit 0' 0
d41 1
d66 2
@


1.1.1.5
log
@track: auto import
@
text
@d2 1
a2 1
#	Id: s_recover,v 1.14 2002/03/27 04:31:51 bostic Exp 
d15 1
a15 1
DIR="db dbreg btree hash qam txn"
d24 1
a24 1
		grep '^PREFIX' $f | sed q
d31 1
a31 1
    awk '{print $2 "\t" $3}' | sort -n -k 2 | uniq -d -f 1 > $tmp
d42 1
a42 2
# Build DB's recovery routines.
for i in db dbreg btree fileops hash qam txn; do
d46 1
d51 1
a51 1
		f=../dbinc_auto/${subsystem}_auto.h
a64 3

# Build the example application's recovery routines.
(cd ../examples_c/ex_apprec && sh auto_rebuild)
@


