summaryrefslogtreecommitdiff
path: root/Build-tools/Bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'Build-tools/Bootstrap')
-rwxr-xr-xBuild-tools/Bootstrap22
1 files changed, 14 insertions, 8 deletions
diff --git a/Build-tools/Bootstrap b/Build-tools/Bootstrap
index 17b15d190b0..930d053b113 100755
--- a/Build-tools/Bootstrap
+++ b/Build-tools/Bootstrap
@@ -99,6 +99,8 @@ if (defined $opt_build_command)
print_help("") if ($opt_help);
defined($REPO=$ARGV[0]) || print_help("Please enter the BK repository to be used!");
+$subject= "Bootstrap of $REPO failed" if $opt_mail;
+
&logger("Starting build");
&abort("The directory \"$REPO\" could not be found!") if (!-d $REPO);
&logger("Using $REPO as the BK parent repository");
@@ -274,11 +276,13 @@ if (defined $opt_changelog)
#
unless ($opt_skip_manual)
{
- $msg= "Adding manual.texi";
+ $msg= "Updating manual files";
&logger($msg);
- $command= "install -m 644 $opt_docdir/Docs/{internals,manual,reservedwords}.texi";
- $command.= " $target_dir/Docs/";
- &run_command($command, "Could not update the manual in $target_dir/Docs/!");
+ foreach $file qw/internals manual reservedwords/
+ {
+ system ("bk cat $opt_docdir/Docs/$file.texi > $target_dir/Docs/$file.texi") == 0
+ or &abort("Could not update $file.texi in $target_dir/Docs/!");
+ }
}
#
@@ -364,11 +368,13 @@ sub print_help
Usage: Bootstrap [options] <bk repository>
-Checks out (exports) a clear-text version of the given local BitKeeper
+Creates a MySQL source distribution to be used for the release builds.
+
+It checks out (exports) a clear-text version of the given local BitKeeper
repository, creates and adds a Changelog file (if requested), adds the
-latest manual.texi from the mysqldoc tree and builds a source distribution
-(*.tar.gz) file. Optionally, the test suite can be run before the source
-archive is being created.
+latest manual files from the mysqldoc BK tree and builds a source
+distribution (*.tar.gz) file. Optionally, the test suite and the
+distribution check can be run before the source archive is being created.
Options: