From: Karel Zak Date: Wed, 29 Dec 2010 19:51:58 +0000 (+0100) Subject: build-sys: remove generated po/POTFILES.in X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c2ee1d26cc5de6540f5bca89a7d91bcd076ceb4;p=util-linux build-sys: remove generated po/POTFILES.in Signed-off-by: Karel Zak --- diff --git a/autogen.sh b/autogen.sh index 4ef4b414..9ecfa611 100755 --- a/autogen.sh +++ b/autogen.sh @@ -80,6 +80,7 @@ echo " automake: $(automake --version | head -1)" #echo " libtoolize: $(libtoolize --version | head -1)" set -e +po/update-potfiles autopoint --force $AP_OPTS #libtoolize --force --copy $LT_OPTS aclocal -I m4 $AL_OPTS diff --git a/po/.gitignore b/po/.gitignore index 1b15110c..8263386d 100644 --- a/po/.gitignore +++ b/po/.gitignore @@ -9,6 +9,7 @@ en@boldquot.header boldquot.sed Rules-quot POTFILES +POTFILES.in Makevars.template Makefile.in.in Makefile.in diff --git a/po/POTFILES.in b/po/POTFILES.in deleted file mode 100644 index 1552fc8a..00000000 --- a/po/POTFILES.in +++ /dev/null @@ -1,259 +0,0 @@ -disk-utils/blockdev.c -disk-utils/cramfs_common.c -disk-utils/elvtune.c -disk-utils/fdformat.c -disk-utils/fsck.cramfs.c -disk-utils/fsck.minix.c -disk-utils/isosize.c -disk-utils/mkfs.bfs.c -disk-utils/mkfs.c -disk-utils/mkfs.cramfs.c -disk-utils/mkfs.minix.c -disk-utils/mkswap.c -disk-utils/raw.c -disk-utils/swaplabel.c -fdisk/cfdisk.c -fdisk/fdiskaixlabel.c -fdisk/fdiskbsdlabel.c -fdisk/fdisk.c -fdisk/fdiskmaclabel.c -fdisk/fdisksgilabel.c -fdisk/fdisksunlabel.c -fdisk/gpt.c -fdisk/i386_sys_types.c -fdisk/partitiontype.c -fdisk/partname.c -fdisk/sfdisk.c -fsck/fsck.c -getopt/getopt.c -hwclock/clock-ppc.c -hwclock/cmos.c -hwclock/hwclock.c -hwclock/kd.c -hwclock/rtc.c -lib/blkdev.c -lib/canonicalize.c -lib/cpuset.c -lib/crc32.c -lib/env.c -lib/fsprobe.c -lib/ismounted.c -lib/langinfo.c -lib/linux_version.c -lib/mangle.c -lib/mbsalign.c -lib/md5.c -lib/setproctitle.c -lib/strutils.c -lib/tt.c -lib/wholedisk.c -login-utils/agetty.c -login-utils/checktty.c -login-utils/chfn.c -login-utils/chsh.c -login-utils/initctl.c -login-utils/islocal.c -login-utils/last.c -login-utils/login.c -login-utils/mesg.c -login-utils/newgrp.c -login-utils/selinux_utils.c -login-utils/setpwnam.c -login-utils/shutdown.c -login-utils/simpleinit.c -login-utils/ttymsg.c -login-utils/vipw.c -login-utils/wall.c -misc-utils/blkid.c -misc-utils/cal.c -misc-utils/ddate.c -misc-utils/findfs.c -misc-utils/findmnt.c -misc-utils/kill.c -misc-utils/logger.c -misc-utils/look.c -misc-utils/lsblk.c -misc-utils/mcookie.c -misc-utils/namei.c -misc-utils/procs.c -misc-utils/rename.c -misc-utils/script.c -misc-utils/scriptreplay.c -misc-utils/setterm.c -misc-utils/uuidd.c -misc-utils/uuidgen.c -misc-utils/whereis.c -misc-utils/wipefs.c -misc-utils/write.c -mount/devname.c -mount/fstab.c -mount/getusername.c -mount/lomount.c -mount/mount.c -mount/mount_mntent.c -mount/sundries.c -mount/swapon.c -mount/umount.c -mount/xmalloc.c -partx/addpart.c -partx/bsd.c -partx/crc32.c -partx/delpart.c -partx/dos.c -partx/gpt.c -partx/mac.c -partx/partx.c -partx/solaris.c -partx/sun.c -partx/unixware.c -schedutils/chrt.c -schedutils/ionice.c -schedutils/taskset.c -shlibs/blkid/samples/mkfs.c -shlibs/blkid/samples/partitions.c -shlibs/blkid/samples/superblocks.c -shlibs/blkid/samples/topology.c -shlibs/blkid/src/cache.c -shlibs/blkid/src/config.c -shlibs/blkid/src/dev.c -shlibs/blkid/src/devname.c -shlibs/blkid/src/devno.c -shlibs/blkid/src/encode.c -shlibs/blkid/src/evaluate.c -shlibs/blkid/src/getsize.c -shlibs/blkid/src/llseek.c -shlibs/blkid/src/partitions/aix.c -shlibs/blkid/src/partitions/bsd.c -shlibs/blkid/src/partitions/dos.c -shlibs/blkid/src/partitions/gpt.c -shlibs/blkid/src/partitions/mac.c -shlibs/blkid/src/partitions/minix.c -shlibs/blkid/src/partitions/partitions.c -shlibs/blkid/src/partitions/sgi.c -shlibs/blkid/src/partitions/solaris_x86.c -shlibs/blkid/src/partitions/sun.c -shlibs/blkid/src/partitions/ultrix.c -shlibs/blkid/src/partitions/unixware.c -shlibs/blkid/src/probe.c -shlibs/blkid/src/read.c -shlibs/blkid/src/resolve.c -shlibs/blkid/src/save.c -shlibs/blkid/src/superblocks/adaptec_raid.c -shlibs/blkid/src/superblocks/befs.c -shlibs/blkid/src/superblocks/bfs.c -shlibs/blkid/src/superblocks/btrfs.c -shlibs/blkid/src/superblocks/cramfs.c -shlibs/blkid/src/superblocks/ddf_raid.c -shlibs/blkid/src/superblocks/drbd.c -shlibs/blkid/src/superblocks/exfat.c -shlibs/blkid/src/superblocks/ext.c -shlibs/blkid/src/superblocks/gfs.c -shlibs/blkid/src/superblocks/hfs.c -shlibs/blkid/src/superblocks/highpoint_raid.c -shlibs/blkid/src/superblocks/hpfs.c -shlibs/blkid/src/superblocks/iso9660.c -shlibs/blkid/src/superblocks/isw_raid.c -shlibs/blkid/src/superblocks/jfs.c -shlibs/blkid/src/superblocks/jmicron_raid.c -shlibs/blkid/src/superblocks/linux_raid.c -shlibs/blkid/src/superblocks/lsi_raid.c -shlibs/blkid/src/superblocks/luks.c -shlibs/blkid/src/superblocks/lvm.c -shlibs/blkid/src/superblocks/minix.c -shlibs/blkid/src/superblocks/netware.c -shlibs/blkid/src/superblocks/nilfs.c -shlibs/blkid/src/superblocks/ntfs.c -shlibs/blkid/src/superblocks/nvidia_raid.c -shlibs/blkid/src/superblocks/ocfs.c -shlibs/blkid/src/superblocks/promise_raid.c -shlibs/blkid/src/superblocks/reiserfs.c -shlibs/blkid/src/superblocks/romfs.c -shlibs/blkid/src/superblocks/silicon_raid.c -shlibs/blkid/src/superblocks/squashfs.c -shlibs/blkid/src/superblocks/superblocks.c -shlibs/blkid/src/superblocks/swap.c -shlibs/blkid/src/superblocks/sysv.c -shlibs/blkid/src/superblocks/ubifs.c -shlibs/blkid/src/superblocks/udf.c -shlibs/blkid/src/superblocks/ufs.c -shlibs/blkid/src/superblocks/vfat.c -shlibs/blkid/src/superblocks/via_raid.c -shlibs/blkid/src/superblocks/vmfs.c -shlibs/blkid/src/superblocks/vxfs.c -shlibs/blkid/src/superblocks/xfs.c -shlibs/blkid/src/superblocks/zfs.c -shlibs/blkid/src/tag.c -shlibs/blkid/src/topology/dm.c -shlibs/blkid/src/topology/evms.c -shlibs/blkid/src/topology/ioctl.c -shlibs/blkid/src/topology/lvm.c -shlibs/blkid/src/topology/md.c -shlibs/blkid/src/topology/sysfs.c -shlibs/blkid/src/topology/topology.c -shlibs/blkid/src/tst_types.c -shlibs/blkid/src/verify.c -shlibs/blkid/src/version.c -shlibs/mount/src/cache.c -shlibs/mount/src/fs.c -shlibs/mount/src/init.c -shlibs/mount/src/iter.c -shlibs/mount/src/lock.c -shlibs/mount/src/optent.c -shlibs/mount/src/optls.c -shlibs/mount/src/optmap.c -shlibs/mount/src/optstr.c -shlibs/mount/src/tab.c -shlibs/mount/src/tab_parse.c -shlibs/mount/src/test.c -shlibs/mount/src/utils.c -shlibs/mount/src/version.c -shlibs/uuid/src/clear.c -shlibs/uuid/src/compare.c -shlibs/uuid/src/copy.c -shlibs/uuid/src/gen_uuid.c -shlibs/uuid/src/gen_uuid_nt.c -shlibs/uuid/src/isnull.c -shlibs/uuid/src/pack.c -shlibs/uuid/src/parse.c -shlibs/uuid/src/tst_uuid.c -shlibs/uuid/src/unpack.c -shlibs/uuid/src/unparse.c -shlibs/uuid/src/uuid_time.c -sys-utils/arch.c -sys-utils/ctrlaltdel.c -sys-utils/cytune.c -sys-utils/dmesg.c -sys-utils/fallocate.c -sys-utils/flock.c -sys-utils/fsfreeze.c -sys-utils/fstrim.c -sys-utils/ipcmk.c -sys-utils/ipcrm.c -sys-utils/ipcs.c -sys-utils/ldattach.c -sys-utils/lscpu.c -sys-utils/pivot_root.c -sys-utils/readprofile.c -sys-utils/renice.c -sys-utils/rtcwake.c -sys-utils/setarch.c -sys-utils/setsid.c -sys-utils/switch_root.c -sys-utils/tunelp.c -sys-utils/unshare.c -text-utils/col.c -text-utils/colcrt.c -text-utils/colrm.c -text-utils/column.c -text-utils/conv.c -text-utils/display.c -text-utils/hexdump.c -text-utils/hexsyntax.c -text-utils/line.c -text-utils/more.c -text-utils/odsyntax.c -text-utils/parse.c -text-utils/pg.c -text-utils/rev.c -text-utils/tailf.c -text-utils/ul.c 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