]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
po: do not search /samples/ subdirectories for translatable strings
authorBenno Schulenberg <bensberg@justemail.net>
Mon, 15 Aug 2011 11:00:18 +0000 (13:00 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 16 Aug 2011 08:16:34 +0000 (10:16 +0200)
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
po/update-potfiles

index 6cabe712c55c8d90c35049b93f1f7690af5eb2a6..2a3ff58bd219c235e59a7c6b6c5420e2389d9fca 100755 (executable)
@@ -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