summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorunknown <monty@mashka.mysql.fi>2002-10-08 18:00:08 +0300
committerunknown <monty@mashka.mysql.fi>2002-10-08 18:00:08 +0300
commit2458748c99a99d09273e9425124393b9becdf634 (patch)
treea1a14dcbce30780db2db73195179be8d19441e34 /scripts
parent97a120e16bd929839a24ece52117f2220ad5a358 (diff)
parent3dd6cce9891f5d8fc3fc0860bc6ac1576696a208 (diff)
downloadmariadb-git-2458748c99a99d09273e9425124393b9becdf634.tar.gz
Merge work:/my/mysql-3.23 into mashka.mysql.fi:/home/my/mysql-3.23
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mysqlhotcopy.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/mysqlhotcopy.sh b/scripts/mysqlhotcopy.sh
index 1aad5c95c25..d808ffdcaef 100644
--- a/scripts/mysqlhotcopy.sh
+++ b/scripts/mysqlhotcopy.sh
@@ -37,7 +37,7 @@ WARNING: THIS PROGRAM IS STILL IN BETA. Comments/patches welcome.
# Documentation continued at end of file
-my $VERSION = "1.16";
+my $VERSION = "1.17";
my $opt_tmpdir = $ENV{TMPDIR} || "/tmp";
@@ -388,6 +388,8 @@ foreach my $rdb ( @db_desc ) {
foreach my $td ( '', @{$rdb->{raid_dirs}} ) {
my $tgt_dirpath = "$rdb->{target}/$td";
+ # Remove trailing slashes (needed for Mac OS X)
+ substr($tgt_dirpath, 1) =~ s|/+$||;
if ( $opt{dryrun} ) {
print "mkdir $tgt_dirpath, 0750\n";
}
@@ -1001,3 +1003,5 @@ resulted in nothing being copied when a regexp was specified but no
database name(s).
Martin Waite - Fix to handle database name that contains space.
+
+Paul DuBois - Remove end '/' from directory names