summaryrefslogtreecommitdiff
path: root/tools/ipf
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-01-06 22:28:57 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-01-06 22:28:57 (GMT)
commit991445be8992c9aad1d86f1ce28300c3421e8f2c (patch)
tree4de19f99d937225c4e5537621cd5f0445f58ec24 /tools/ipf
parent104a4a970c98b8846548e03246d7301c3e1eb553 (diff)
Built a fresh list for POTFILES when initializing the sources.
Diffstat (limited to 'tools/ipf')
-rwxr-xr-xtools/ipf/init_potfiles.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/tools/ipf/init_potfiles.sh b/tools/ipf/init_potfiles.sh
new file mode 100755
index 0000000..e92c120
--- /dev/null
+++ b/tools/ipf/init_potfiles.sh
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+function keep_i18n() {
+
+ while read file;
+ do
+
+ if [ "$file" != "i18n.h" ]; then
+
+ grep -q '_(' $file
+
+ status=$?
+
+ if [ "$status" -eq 0 ]; then
+ echo $file
+ fi
+
+ fi
+
+ done
+
+}
+
+mkdir -p po
+
+find . -type f -name '*.[ch]' | keep_i18n | sort > po/POTFILES.in