]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: clean update-potfiles script
authorKarel Zak <kzak@redhat.com>
Wed, 10 Oct 2012 11:06:01 +0000 (13:06 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 10 Oct 2012 12:10:30 +0000 (14:10 +0200)
 - use only sed(1)
 - remove config.h from the result
 - remove samples/, tests/, util-linu-*/ ("make ditcheck" product)
   directories from the result

Signed-off-by: Karel Zak <kzak@redhat.com>
po/update-potfiles

index fe957f87e00e38187dfd5727cd07c5758c8419c0..c92abd8b7074662d4923e56eaad83e47f2f25b35 100755 (executable)
@@ -14,6 +14,5 @@
 
 find -name "*.c" -or -name "*.h" | \
   sort | \
-  sed ':/samples/:d' | \
-  gawk '! /^\.\/tests\// { print gensub(/^\.\//, "", 1) }' \
+  sed '/samples/d; /config\.h/d; /util-linux-.*/d; /\.\/tests/d; s/^\.\///' \
   > po/POTFILES.in