diff options
author | unknown <lenz@mysql.com> | 2005-02-01 13:19:21 +0100 |
---|---|---|
committer | unknown <lenz@mysql.com> | 2005-02-01 13:19:21 +0100 |
commit | d59bc7f47a0384d48e595cb39e4bb0df10dce419 (patch) | |
tree | 47edc575bf130fa7ddbb26f97ec33e5a750a72b3 /Build-tools | |
parent | b3c74fb12461a47eaf6d97db0ac80fc7d3ff0963 (diff) | |
parent | 0f7fae73d198a93956e81eb93af1cbf2d3506013 (diff) | |
download | mariadb-git-d59bc7f47a0384d48e595cb39e4bb0df10dce419.tar.gz |
Merge mysql.com:/space/my/mysql-4.0 into mysql.com:/space/my/mysql-4.1
Build-tools/Bootstrap:
Auto merged
Diffstat (limited to 'Build-tools')
-rwxr-xr-x | Build-tools/Bootstrap | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Build-tools/Bootstrap b/Build-tools/Bootstrap index 10ebc5c2dd1..827eb4022d7 100755 --- a/Build-tools/Bootstrap +++ b/Build-tools/Bootstrap @@ -210,10 +210,16 @@ if (-d $target_dir) } else { - &logger("Renaming $target_dir to $target_dir.old." . $$); + # Get the time stamp of "configure.in" + @stat= stat("$target_dir/configure.in"); + my $mtime= $stat[9]; + my ($sec,$min,$hour,$mday,$mon,$year) = localtime($mtime); + my $mtime= sprintf("%04d%-02d-%02d-%02d:%02d", $year+1900, $mon+1, $mday, $hour, $min); + + &logger("Renaming $target_dir to $target_dir-$mtime"); $command= "mv "; $command.= "-v " if ($opt_verbose || defined $opt_log); - $command.= "$target_dir $target_dir.old." . $$; + $command.= "$target_dir $target_dir-$mtime"; &run_command($command, "Could not rename $target_dir!"); } } |