docs/C_SOURCE_FILES, po/POTFILES: Remove duplicate files.

Because v2v/test-harness is a subdirectory of v2v, and because both
paths are listed in $(DIST_SUBDIRS), using find $(DIST_SUBDIRS) will
list files in v2v/test-harness twice.  (This probably happens in other
directories too, but I noticed it here.)  The easiest fix for this is
simply to use 'sort -u' to remove the duplicates.
This commit is contained in:
Richard W.M. Jones
2017-02-15 14:24:14 +00:00
parent 6dcfd85623
commit e46b07ca1b

View File

@@ -328,7 +328,7 @@ docs/C_SOURCE_FILES: configure.ac
grep -v -E '/(guestfs|rc)_protocol\.' | \
grep -v -E '.*/errnostring\.' | \
grep -v -E '.*-gperf\.' | \
LC_ALL=C sort > $@-t
LC_ALL=C sort -u > $@-t
mv $@-t $@
# For more information about translations, see po/Makefile.am.
@@ -340,7 +340,7 @@ po/POTFILES: configure.ac
grep -v -E '/((guestfs|rc)_protocol\.c)$$' | \
grep -v -E '^python/utils\.c$$' | \
grep -v -E '^perl/lib/Sys/Guestfs\.c$$' | \
LC_ALL=C sort > $@-t
LC_ALL=C sort -u > $@-t
mv $@-t $@
po/POTFILES-ml: configure.ac