summaryrefslogtreecommitdiff
path: root/Build-tools
diff options
context:
space:
mode:
authormonty@mysql.com <>2004-09-01 04:12:09 +0300
committermonty@mysql.com <>2004-09-01 04:12:09 +0300
commit054cea4ca8c1c86bd4434d5d068cf21e8623a5ff (patch)
tree4ad5995c2fe0e62dfd3c25bcb2a946ad44728c19 /Build-tools
parentba4d4ce97ab4287dd0c3da55f1bae0aaa963a309 (diff)
parent3f0f1a4fb2b3b1b8e60471a5ef8a83e2b978acda (diff)
downloadmariadb-git-054cea4ca8c1c86bd4434d5d068cf21e8623a5ff.tar.gz
Merge with 4.0
Diffstat (limited to 'Build-tools')
-rwxr-xr-xBuild-tools/Bootstrap10
1 files changed, 6 insertions, 4 deletions
diff --git a/Build-tools/Bootstrap b/Build-tools/Bootstrap
index c1063363bdf..8cad093bc5f 100755
--- a/Build-tools/Bootstrap
+++ b/Build-tools/Bootstrap
@@ -123,14 +123,16 @@ if (($opt_directory ne $PWD) && (!-d $opt_directory && !$opt_dry_run))
if ($opt_pull)
{
&logger("Updating BK tree $REPO to latest ChangeSet first");
- $command= "cd $REPO; bk pull; cd ..";
- &run_command($command, "Could not update $REPO!");
+ chdir ($REPO) or &abort("Could not chdir to $REPO!");
+ &run_command("bk pull", "Could not update $REPO!");
+ chdir ($PWD) or &abort("Could not chdir to $PWD!");
unless ($opt_skip_manual)
{
&logger("Updating manual tree in $opt_docdir");
- $command= "cd $opt_docdir; bk pull; cd ..";
- &run_command($command, "Could not update $opt_docdir!");
+ chdir ($opt_docdir) or &abort("Could not chdir to $opt_docdir!");
+ &run_command("bk pull", "Could not update $opt_docdir!");
+ chdir ($PWD) or &abort("Could not chdir to $PWD!");
}
}