summaryrefslogtreecommitdiff
path: root/acprep
diff options
context:
space:
mode:
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):