Sort file list when creating gettext-files
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 27 Dec 2011 18:20:56 +0000 (20:20 +0200)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 27 Dec 2011 18:20:56 +0000 (20:20 +0200)
That way, the created .pot file is more deterministic and not
dependent on the order in which the files are found.

src/backend/nls.mk

index a081293c6f196e63c60ae9cc47f804613cb62ac7..30f6a2bf9f8ae746f654ea8141f01a04e633de26 100644 (file)
@@ -12,7 +12,7 @@ GETTEXT_FLAGS    = $(BACKEND_COMMON_GETTEXT_FLAGS) \
     write_stderr:1:c-format
 
 gettext-files: distprep
-   find $(srcdir)/ $(srcdir)/../port/ -name '*.c' -print >$@
+   find $(srcdir)/ $(srcdir)/../port/ -name '*.c' -print | LC_ALL=C sort >$@
 
 my-clean:
    rm -f gettext-files