summaryrefslogtreecommitdiff
path: root/acprep
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-31 06:02:42 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-31 06:02:42 -0400
commitae6743ab15669cbeb6bfc121ba7c7903d7839a3c (patch)
tree9717bbdebd8a03357d6cee9c746d44328576470d /acprep
parentcb3c7c3a55988c37d68637c04fcf9df70757b84f (diff)
downloadfork-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-xacprep9
1 files changed, 4 insertions, 5 deletions
diff --git a/acprep b/acprep
index 9a68e6e3..7036f175 100755
--- a/acprep
+++ b/acprep
@@ -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):