From 5b67a3220b9fcc50a23064b52d3d328ac5e139f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Wed, 23 Nov 2016 17:59:25 +0100 Subject: Makefile: Set LC_COLLATE=C when building erlang.mk When the index files are concatenated, (`index/*` in `build.config`), their order is related to the collation locale used by the shell. By explicitely setting this to the C locale, we make sure that the order is consistent, no matter the user's locale. It is especially useful in teams where users and systems have different locales. --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 2ddf6fd..7c8d54b 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,7 @@ ERLANG_MK_VERSION = $(shell git describe --tags --dirty) .PHONY: all check all: + export LC_COLLATE=C; \ awk 'FNR==1 && NR!=1{print ""}1' $(patsubst %,%.mk,$(BUILD_CONFIG)) \ | sed 's/^ERLANG_MK_VERSION = .*/ERLANG_MK_VERSION = $(ERLANG_MK_VERSION)/' > $(ERLANG_MK) -- cgit v1.2.3