diff options
author | LaMont Jones <lamont@debian.org> | 2011-01-31 20:15:49 -0700 |
---|---|---|
committer | LaMont Jones <lamont@debian.org> | 2011-01-31 20:15:49 -0700 |
commit | 11292d25510e67c83c6580401eccd42d6d6da931 (patch) | |
tree | ca5850da93c90f8798d7ff115e0124edffb8bb97 /po/update-potfiles | |
parent | 4f9e177060fb5ad6e574598aefdf2d5f50a8b54f (diff) | |
parent | 9f55bf3794ca98852dd1f352f993dea60d83a2e1 (diff) | |
download | util-linux-old-11292d25510e67c83c6580401eccd42d6d6da931.tar.gz |
Merge remote branch 'origin/master'
Conflicts:
mount/mount.8
mount/mount.c
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 |