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 <kzak@redhat.com>
This commit is contained in:
Karel Zak 2012-10-10 13:06:01 +02:00
parent 78dd43cadc
commit 71b161ea37
1 changed files with 1 additions and 2 deletions

View File

@ -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