1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-08 05:04:16 -04:00
elinks/po/potfiles.py
2022-10-12 18:14:28 +02:00

11 lines
385 B
Python
Executable File

#!/usr/bin/python3
import os
if __name__ == '__main__':
podir = os.path.dirname(os.path.realpath(__file__))
topsrcdir = os.path.abspath(os.path.join(podir, '..'))
potfiles = os.path.join(podir, 'potfiles.list')
os.chdir(topsrcdir)
os.system("find src/ -type f -name '*.[ch]' -o -name '*.cpp' -o -name options.inc -o -name 'actions-*.inc' | sort > %s" % potfiles)