summaryrefslogtreecommitdiff
path: root/acprep
diff options
context:
space:
mode:
Diffstat (limited to 'acprep')
-rwxr-xr-xacprep16
1 files changed, 15 insertions, 1 deletions
diff --git a/acprep b/acprep
index 12236302..371c5e48 100755
--- a/acprep
+++ b/acprep
@@ -468,7 +468,12 @@ class PrepareBuild(CommandLineApp):
def phase_autogen(self, *args):
self.log.info('Executing phase: autogen')
- self.execute('sh', 'autogen.sh')
+
+ if not exists('autogen.sh') or \
+ self.isnewer('tools/autogen.sh', 'autogen.sh'):
+ shutil.copyfile('tools/autogen.sh', 'autogen.sh')
+
+ self.execute('sh', 'tools/autogen.sh')
def phase_aclocal(self, *args):
self.log.info('Executing phase: aclocal')
@@ -476,6 +481,15 @@ class PrepareBuild(CommandLineApp):
def phase_autoconf(self, *args):
self.log.info('Executing phase: autoconf')
+
+ if not exists('configure.ac') or \
+ self.isnewer('tools/configure.ac', 'configure.ac'):
+ shutil.copyfile('tools/configure.ac', 'configure.ac')
+
+ if not exists('Makefile.am') or \
+ self.isnewer('tools/Makefile.am', 'Makefile.am'):
+ shutil.copyfile('tools/Makefile.am', 'Makefile.am')
+
reason = self.need_to_prepare_autotools()
if reason:
self.log.info('autogen.sh must be run ' + reason)