mariadb/export.sh

32 lines
670 B
Bash
Raw Normal View History

2005-10-27 07:29:40 +00:00
#!/bin/bash
#
# export current working directory in a format suitable for sending to
# MySQL as a snapshot.
set -eu
if [ $# -ne 1 ] ; then
echo "Usage: export.sh revision-number-of-last-snapshot"
exit 1
fi
2005-10-27 07:29:40 +00:00
rm -rf to-mysql
mkdir -p to-mysql/storage/
svn log -v -r "$1:BASE" > to-mysql/log
svn export . to-mysql/storage/innobase
2005-10-27 07:29:40 +00:00
cd to-mysql
mkdir -p sql mysql-test/t mysql-test/r mysql-test/include
cd storage/innobase
2005-10-27 07:29:40 +00:00
mv handler/* ../../sql
2005-10-27 07:29:40 +00:00
rmdir handler
mv mysql-test/*.test mysql-test/*.opt ../../mysql-test/t
mv mysql-test/*.result ../../mysql-test/r
mv mysql-test/*.inc ../../mysql-test/include
2005-10-27 07:29:40 +00:00
rmdir mysql-test
rm setup.sh export.sh compile-innodb-debug