From: Karel Zak Date: Wed, 18 Mar 2009 19:53:43 +0000 (+0100) Subject: po: rewrite update-potfiles script X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68331655330d7b96817edfed43af28b4ce44ed84;p=util-linux po: rewrite update-potfiles script Signed-off-by: Karel Zak --- 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 # -> 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