diff options
author | John Wiegley <johnw@newartisans.com> | 2009-10-30 18:36:22 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-10-30 18:38:09 -0400 |
commit | a3799eebdb682162eb1edb3706a6ff1097b12f41 (patch) | |
tree | bbe0bc928ef28adc5e1eb0afbd7a68f1be14a4db /acprep | |
parent | 007bc843c56800b35b45bb76a448b7268b57b057 (diff) | |
download | fork-ledger-a3799eebdb682162eb1edb3706a6ff1097b12f41.tar.gz fork-ledger-a3799eebdb682162eb1edb3706a6ff1097b12f41.tar.bz2 fork-ledger-a3799eebdb682162eb1edb3706a6ff1097b12f41.zip |
Moved autoconf-related files into tools
This makes it more certain that people cloning from Git will use acprep.
Diffstat (limited to 'acprep')
-rwxr-xr-x | acprep | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -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) |