diff options
author | Karel Zak <kzak@redhat.com> | 2010-12-29 20:51:58 +0100 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2010-12-29 20:51:58 +0100 |
commit | 7c2ee1d26cc5de6540f5bca89a7d91bcd076ceb4 (patch) | |
tree | 82f4c9d00206960c5f26818c9bc4b4f8c7c18349 /po/update-potfiles | |
parent | 6c6f2af9e3949197cf7a70255895a2f4451f2319 (diff) | |
download | util-linux-old-7c2ee1d26cc5de6540f5bca89a7d91bcd076ceb4.tar.gz |
build-sys: remove generated po/POTFILES.in
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'po/update-potfiles')
-rwxr-xr-x | po/update-potfiles | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/po/update-potfiles b/po/update-potfiles index 1de3e3a3..6cabe712 100755 --- a/po/update-potfiles +++ b/po/update-potfiles @@ -5,9 +5,13 @@ # find all *.c files, # sort the list -# exclude ../tests/ from the list -# and remove "../" prefix +# exclude ./tests/ from the list +# and remove "./" prefix -find ../ -name "*.c" | \ -sort | \ -gawk '! /^\.\.\/tests\// { print gensub(/^\.\.\//, "", 1) }' > POTFILES.in +[ ! -f "po/Makevars" ] && \ + echo "You must run this script in the top-level directory" + +find -name "*.c" | \ + sort | \ + gawk '! /^\.\/tests\// { print gensub(/^\.\//, "", 1) }' \ + > po/POTFILES.in |