From: Karel Zak Date: Wed, 10 Oct 2012 11:06:01 +0000 (+0200) Subject: build-sys: clean update-potfiles script X-Git-Tag: v2.23-rc1~643 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71b161ea37c57dc6a8341aeec6c0c2ae7cd4cfe3;p=thirdparty%2Futil-linux.git build-sys: clean update-potfiles script - 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 --- diff --git a/po/update-potfiles b/po/update-potfiles index fe957f87e0..c92abd8b70 100755 --- a/po/update-potfiles +++ b/po/update-potfiles @@ -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