]> granicus.if.org Git - postgresql/commitdiff
Remove trailing slashes from directories in find command
authorPeter Eisentraut <peter_e@gmx.net>
Sat, 19 Sep 2015 02:03:42 +0000 (22:03 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Sat, 19 Sep 2015 02:06:54 +0000 (22:06 -0400)
BSD find is not very smart and ends up writing double slashes into the
output in those cases.  Also, xgettext is not very smart and splits the
file names incorrectly in those cases, resulting in slightly incorrect
file names being written into the POT file.

src/backend/nls.mk

index fa4ff1a4e98a68f4363f7ece2f7f5a22dcd6d425..c021ab87da3355ae78ced69d3e21bda16540e906 100644 (file)
@@ -13,7 +13,7 @@ GETTEXT_FLAGS    = $(BACKEND_COMMON_GETTEXT_FLAGS) \
     report_invalid_record:2:c-format
 
 gettext-files: distprep
-       find $(srcdir)/ $(srcdir)/../common/ $(srcdir)/../port/ -name '*.c' -print | LC_ALL=C sort >$@
+       find $(srcdir) $(srcdir)/../common $(srcdir)/../port -name '*.c' -print | LC_ALL=C sort >$@
 
 my-clean:
        rm -f gettext-files