summaryrefslogtreecommitdiffstats
path: root/po/update-potfiles
diff options
context:
space:
mode:
authorBenno Schulenberg2011-08-15 13:00:18 +0200
committerKarel Zak2011-08-16 10:16:34 +0200
commit3bb21a4c4afcc4f32368a26e804e0dfe7c281697 (patch)
tree463afcce34a618eb440c9a261b13c77bbbbb0318 /po/update-potfiles
parenthwclock: in man page move --date and --epoch from Functions to Options (diff)
downloadkernel-qcow2-util-linux-3bb21a4c4afcc4f32368a26e804e0dfe7c281697.tar.gz
kernel-qcow2-util-linux-3bb21a4c4afcc4f32368a26e804e0dfe7c281697.tar.xz
kernel-qcow2-util-linux-3bb21a4c4afcc4f32368a26e804e0dfe7c281697.zip
po: do not search /samples/ subdirectories for translatable strings
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Diffstat (limited to 'po/update-potfiles')
-rwxr-xr-xpo/update-potfiles2
1 files changed, 2 insertions, 0 deletions
diff --git a/po/update-potfiles b/po/update-potfiles
index 6cabe712c..2a3ff58bd 100755
--- a/po/update-potfiles
+++ b/po/update-potfiles
@@ -5,6 +5,7 @@
# find all *.c files,
# sort the list
+# exclude /samples/ subdirectories
# exclude ./tests/ from the list
# and remove "./" prefix
@@ -13,5 +14,6 @@
find -name "*.c" | \
sort | \
+ sed ':/samples/:d' | \
gawk '! /^\.\/tests\// { print gensub(/^\.\//, "", 1) }' \
> po/POTFILES.in