This commit is contained in:
Oliver Lehmann 1989-10-03 05:52:29 +00:00
parent 2e4e77da67
commit 23d256929e
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
db=${1:?"usage: $0 db dbi"}
dbi=${2:?"DBI-file-name fehlt"}
cp $dbi /tmp/cdb$$
chmod 600 /tmp/cdb$$
ed - /tmp/cdb$$ << SCRIPT
v/^[TD]/d
g/^T/s//destroyr $db/
g/destroy\(.*\)/s//&\\
create\1/
g/^D/-s/$/ \\\\/
g/^D * *[0-9][0-9]*/s///
w
SCRIPT
. /tmp/cdb$$
rm /tmp/cdb$$