diff options
Diffstat (limited to 'Build-tools')
-rwxr-xr-x | Build-tools/Bootstrap | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/Build-tools/Bootstrap b/Build-tools/Bootstrap index 20cd5a089bd..15dfb31dfdd 100755 --- a/Build-tools/Bootstrap +++ b/Build-tools/Bootstrap @@ -43,6 +43,7 @@ $opt_suffix= ""; $opt_test= undef; $opt_skip_check= undef; $opt_skip_manual= undef; +$opt_win_dist= undef; $version= "unknown"; $major=$minor=$release=0; @@ -62,7 +63,8 @@ GetOptions( "skip-manual", "suffix=s", "test|t", - "verbose|v" + "verbose|v", + "win-dist|w" ) || print_help(""); # @@ -303,7 +305,21 @@ $command= "make dist"; &run_command($command, "make dist failed!"); # -# Run "make distcheck" to verify the source archive +# Package the Windows source +# +if ($opt_win_dist) +{ + &logger ("Creating Windows source package"); + chdir("scripts"); + $command= "make make_win_src_distribution"; + &run_command($command, "make make_win_src_distribution failed!"); + chdir(".."); + $command= "./scripts/make_win_src_distibution"; + &run_command($command, "make_win_src_distribution failed!"); +} + +# +# Run "make distcheck" to verify the source archive # if (!$opt_skip_check) { @@ -330,7 +346,7 @@ sub print_help print "ERROR: $message\n"; } print <<EOF; - + Usage: Bootstrap [options] <bk repository> Checks out (exports) a clear-text version of the given local BitKeeper @@ -376,6 +392,7 @@ Options: (e.g. "-20020518"). -t, --test Run the test suite after build -v, --verbose Be verbose +-w, --win-dist Also make Windows source distribution Example: |