From a3799eebdb682162eb1edb3706a6ff1097b12f41 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 30 Oct 2009 18:36:22 -0400 Subject: Moved autoconf-related files into tools This makes it more certain that people cloning from Git will use acprep. --- acprep | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'acprep') 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) -- cgit v1.2.3