diff options
author | John Wiegley <johnw@newartisans.com> | 2009-10-31 06:02:42 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-10-31 06:02:42 -0400 |
commit | ae6743ab15669cbeb6bfc121ba7c7903d7839a3c (patch) | |
tree | 9717bbdebd8a03357d6cee9c746d44328576470d /acprep | |
parent | cb3c7c3a55988c37d68637c04fcf9df70757b84f (diff) | |
download | fork-ledger-ae6743ab15669cbeb6bfc121ba7c7903d7839a3c.tar.gz fork-ledger-ae6743ab15669cbeb6bfc121ba7c7903d7839a3c.tar.bz2 fork-ledger-ae6743ab15669cbeb6bfc121ba7c7903d7839a3c.zip |
Generation of po/POTFILES.in no longer depends on Git
Diffstat (limited to 'acprep')
-rwxr-xr-x | acprep | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -459,11 +459,10 @@ class PrepareBuild(CommandLineApp): join('po', 'Makevars')) POTFILES_in = open('po/POTFILES.in', 'w') - for filename in self.get_stdout('git', 'ls-files', '-z', - '*.cc', '*.h').split('\0'): - if not re.match('(src|python)/', filename): - POTFILES_in.write(filename) - POTFILES_in.write('\n') + for filename in (f for f in os.listdir(join(self.source_dir, 'src')) + if re.search('\.(cc|h)', f)): + POTFILES_in.write(join('src', filename)) + POTFILES_in.write('\n') POTFILES_in.close() def phase_version(self, *args): |