summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2009-03-18 20:53:43 +0100
committerKarel Zak <kzak@redhat.com>2009-03-18 20:53:43 +0100
commit68331655330d7b96817edfed43af28b4ce44ed84 (patch)
treeb5d83310b4ea0a8f6614c4c8d7f7edd34c5d2ec7
parent0152a9eae3297e7ebc68028e84d100d97880795b (diff)
downloadutil-linux-old-68331655330d7b96817edfed43af28b4ce44ed84.tar.gz
po: rewrite update-potfiles script
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--po/POTFILES.in54
-rwxr-xr-xpo/update-potfiles14
2 files changed, 62 insertions, 6 deletions
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 231857dd..30172621 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -39,6 +39,60 @@ lib/ismounted.c
lib/linux_version.c
lib/md5.c
lib/pttype.c
+libs/blkid/bin/blkid.c
+libs/blkid/bin/findfs.c
+libs/blkid/src/cache.c
+libs/blkid/src/config.c
+libs/blkid/src/dev.c
+libs/blkid/src/devname.c
+libs/blkid/src/devno.c
+libs/blkid/src/encode.c
+libs/blkid/src/evaluate.c
+libs/blkid/src/getsize.c
+libs/blkid/src/llseek.c
+libs/blkid/src/probe.c
+libs/blkid/src/probers/adaptec_raid.c
+libs/blkid/src/probers/btrfs.c
+libs/blkid/src/probers/cramfs.c
+libs/blkid/src/probers/ddf_raid.c
+libs/blkid/src/probers/ext.c
+libs/blkid/src/probers/gfs.c
+libs/blkid/src/probers/hfs.c
+libs/blkid/src/probers/highpoint_raid.c
+libs/blkid/src/probers/hpfs.c
+libs/blkid/src/probers/iso9660.c
+libs/blkid/src/probers/isw_raid.c
+libs/blkid/src/probers/jfs.c
+libs/blkid/src/probers/jmicron_raid.c
+libs/blkid/src/probers/linux_raid.c
+libs/blkid/src/probers/lsi_raid.c
+libs/blkid/src/probers/luks.c
+libs/blkid/src/probers/lvm.c
+libs/blkid/src/probers/minix.c
+libs/blkid/src/probers/netware.c
+libs/blkid/src/probers/ntfs.c
+libs/blkid/src/probers/nvidia_raid.c
+libs/blkid/src/probers/ocfs.c
+libs/blkid/src/probers/promise_raid.c
+libs/blkid/src/probers/reiserfs.c
+libs/blkid/src/probers/romfs.c
+libs/blkid/src/probers/silicon_raid.c
+libs/blkid/src/probers/squashfs.c
+libs/blkid/src/probers/swap.c
+libs/blkid/src/probers/sysv.c
+libs/blkid/src/probers/udf.c
+libs/blkid/src/probers/ufs.c
+libs/blkid/src/probers/vfat.c
+libs/blkid/src/probers/via_raid.c
+libs/blkid/src/probers/vxfs.c
+libs/blkid/src/probers/xfs.c
+libs/blkid/src/read.c
+libs/blkid/src/resolve.c
+libs/blkid/src/save.c
+libs/blkid/src/tag.c
+libs/blkid/src/tst_types.c
+libs/blkid/src/verify.c
+libs/blkid/src/version.c
lib/setproctitle.c
lib/wholedisk.c
login-utils/agetty.c
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