diff options
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 26 |
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'); |