mirror of
https://github.com/MariaDB/server.git
synced 2025-01-24 15:54:37 +01:00
2d14fa5b39
delete auto-generated files remove in-place editing BitKeeper/deleted/.del-ex_apprec_auto.c~6e4c8882b1f0fe9d: Delete: bdb/examples_c/ex_apprec/ex_apprec_auto.c BitKeeper/deleted/.del-ex_apprec_auto.h~d01f1e472bf1b59f: Delete: bdb/examples_c/ex_apprec/ex_apprec_auto.h BitKeeper/deleted/.del-ex_apprec_template~4157a705d73c1209: Delete: bdb/examples_c/ex_apprec/ex_apprec_template bdb/rpc_server/c/db_server_proc.c.in: Rename: bdb/rpc_server/c/db_server_proc.c -> bdb/rpc_server/c/db_server_proc.c.in BitKeeper/deleted/.del-rpc_defs.in~bfc9820a618d5926: Delete: bdb/dbinc_auto/rpc_defs.in BitKeeper/deleted/.del-db_server.h~1c77cc0d19f3ecf: Delete: bdb/dbinc_auto/db_server.h BitKeeper/deleted/.del-db_server_proc.sed~94a351b3e31c0ad0: Delete: bdb/rpc_server/c/db_server_proc.sed BitKeeper/deleted/.del-db_server_svc.c~66ae3c56737e07ab: Delete: bdb/rpc_server/c/db_server_svc.c BitKeeper/deleted/.del-db_server_xdr.c~518231ed78b9cdcf: Delete: bdb/rpc_server/c/db_server_xdr.c BitKeeper/deleted/.del-gen_db_server.c~51935e227c7c23ac: Delete: bdb/rpc_server/c/gen_db_server.c bdb/dist/RELEASE: disable chmod in bdb scripts - bk doesn't like somebody messing with permissions bdb/dist/s_crypto: disable chmod in bdb scripts - bk doesn't like somebody messing with permissions bdb/dist/s_perm: disable chmod in bdb scripts - bk doesn't like somebody messing with permissions bdb/dist/s_recover: disable chmod in bdb scripts - bk doesn't like somebody messing with permissions bdb/dist/s_rpc: NEVER modify files in-place!!! bdb/dist/s_symlink: disable chmod in bdb scripts - bk doesn't like somebody messing with permissions bdb/dist/s_tags: disable chmod in bdb scripts - bk doesn't like somebody messing with permissions
69 lines
1.9 KiB
Bash
Executable file
69 lines
1.9 KiB
Bash
Executable file
#!/bin/sh -
|
|
# $Id: s_recover,v 1.14 2002/03/27 04:31:51 bostic Exp $
|
|
#
|
|
# Build the automatically generated logging/recovery files.
|
|
|
|
. ./RELEASE
|
|
|
|
tmp=/tmp/__db_a
|
|
loglist=/tmp/__db_b
|
|
source=/tmp/__db_c
|
|
header=/tmp/__db_d
|
|
template=/tmp/__db_e
|
|
|
|
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
|
|
|
|
DIR="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}'
|
|
|
|
done
|
|
done > $loglist
|
|
grep -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.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 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)
|
|
done
|
|
done
|
|
|
|
# Build the example application's recovery routines.
|
|
(cd ../examples_c/ex_apprec && sh auto_rebuild)
|