Commit 6a39d321 authored by unknown's avatar unknown

mysql_fix_extensions added


BitKeeper/etc/ignore:
  Added scripts/mysql_fix_extensions to the ignore list
scripts/mysql_fix_extensions.sh:
  typo fixed
parent f717676a
...@@ -446,3 +446,4 @@ vio/test-sslclient ...@@ -446,3 +446,4 @@ vio/test-sslclient
vio/test-sslserver vio/test-sslserver
vio/viotest-ssl vio/viotest-ssl
sql-bench/test-transactions sql-bench/test-transactions
scripts/mysql_fix_extensions
...@@ -20,6 +20,7 @@ bin_SCRIPTS = @server_scripts@ \ ...@@ -20,6 +20,7 @@ bin_SCRIPTS = @server_scripts@ \
msql2mysql \ msql2mysql \
mysql_config \ mysql_config \
mysql_fix_privilege_tables \ mysql_fix_privilege_tables \
mysql_fix_extensions \
mysql_setpermission \ mysql_setpermission \
mysql_zap \ mysql_zap \
mysqlaccess \ mysqlaccess \
...@@ -35,6 +36,7 @@ EXTRA_SCRIPTS = make_binary_distribution.sh \ ...@@ -35,6 +36,7 @@ EXTRA_SCRIPTS = make_binary_distribution.sh \
msql2mysql.sh \ msql2mysql.sh \
mysql_config.sh \ mysql_config.sh \
mysql_fix_privilege_tables.sh \ mysql_fix_privilege_tables.sh \
mysql_fix_extensions.sh \
mysql_install_db.sh \ mysql_install_db.sh \
mysql_setpermission.sh \ mysql_setpermission.sh \
mysql_zap.sh \ mysql_zap.sh \
...@@ -61,6 +63,7 @@ CLEANFILES = @server_scripts@ \ ...@@ -61,6 +63,7 @@ CLEANFILES = @server_scripts@ \
msql2mysql \ msql2mysql \
mysql_config \ mysql_config \
mysql_fix_privilege_tables \ mysql_fix_privilege_tables \
mysql_fix_extensions \
mysql_setpermission \ mysql_setpermission \
mysql_zap \ mysql_zap \
mysqlaccess \ mysqlaccess \
......
#!@PERL@
# This is a utility for MySQL. It is not needed by any standard part
# of MySQL.
# Usage: mysql_fix_extentions datadir
# does not work with RAID, with InnoDB or BDB tables
# makes .frm lowercase and .MYI/MYD/ISM/ISD uppercase
# useful when datafiles are copied from windows
die "Usage: $0 datadir\n" unless -d $ARGV[0];
for $a (<$ARGV[0]/*/*.*>) { $_=$a;
s/\.frm$/.frm/i;
s/\.(is[md]|my[id])$/\U$&/;
rename ($a, $_) || warn "Cannot rename $a => $_ : $!";
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment