diff options
author | Karel Zak <kzak@redhat.com> | 2009-03-18 20:53:43 +0100 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2009-03-18 20:53:43 +0100 |
commit | 68331655330d7b96817edfed43af28b4ce44ed84 (patch) | |
tree | b5d83310b4ea0a8f6614c4c8d7f7edd34c5d2ec7 /po/update-potfiles | |
parent | 0152a9eae3297e7ebc68028e84d100d97880795b (diff) | |
download | util-linux-old-68331655330d7b96817edfed43af28b4ce44ed84.tar.gz |
po: rewrite update-potfiles script
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'po/update-potfiles')
-rwxr-xr-x | po/update-potfiles | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/po/update-potfiles b/po/update-potfiles index 737202a2..1de3e3a3 100755 --- a/po/update-potfiles +++ b/po/update-potfiles @@ -1,11 +1,13 @@ #!/bin/sh # +# Copyright (C) 2009 Karel Zak <kzak@redhat.com> # -> POTFILES.in +# find all *.c files, +# sort the list +# exclude ../tests/ from the list +# and remove "../" prefix -cd .. -for x in */*.c; do -echo "$x" >> po/POTFILES.in -done -cd po +find ../ -name "*.c" | \ +sort | \ +gawk '! /^\.\.\/tests\// { print gensub(/^\.\.\//, "", 1) }' > POTFILES.in |