aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap26
1 files changed, 26 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap
new file mode 100755
index 0000000..4122693
--- /dev/null
+++ b/bootstrap
@@ -0,0 +1,26 @@
+#!/usr/bin/perl
+use strict;
+use autodie;
+
+my $mib2c_config = 'src/mysqlstat-mib.mib2c';
+
+die "This file must be run from Mysqlstat top level source directory"
+ unless -r $mib2c_config;
+
+print "$0: creating ancillary directories and files\n";
+foreach my $dir ('m4', 'build-aux') {
+ mkdir($dir) unless -d $dir;
+}
+
+unless (-f 'ChangeLog') {
+ open(my $fd, '>', 'ChangeLog');
+ print $fd <<EOT
+This file is a placeholder. It will be filled with actual data by the first
+run of make.
+EOT
+;
+ close $fd;
+}
+
+print "$0: reconfiguring\n";
+exec('autoreconf -f -i -s');

Return to:

Send suggestions and report system problems to the System administrator.