Skip to content

Commit 0f9cac2

Browse files
Release: Use proper md5sum on macOS
macOS doesn't have md5sum, but it has `md5 -r` which produces same output. Signed-off-by: Anton Kolesov <[email protected]>
1 parent fc08f62 commit 0f9cac2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

release.mk

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,12 @@ WGET = wget
135135
# Always have `-nv`.
136136
override WGETFLAGS += -nv
137137

138+
ifneq ($(HOST),macos)
139+
MD5SUM := md5sum
140+
else
141+
MD5SUM := md5 -r
142+
endif
143+
138144
# RELEASE_TAG is a literal Git tag, like arc-2016.09-rc1.
139145
# RELEASE in this case would be 2016.09-rc1. However remove -release suffix
140146
# that is used for final release tags.
@@ -399,7 +405,7 @@ $O/$(MD5SUM_FILE): $O/$(IDE_EXE_WIN)
399405
endif
400406

401407
$O/$(MD5SUM_FILE): $(BUILD_DEPS)
402-
cd $O && md5sum $(UPLOAD_ARTIFACTS) > $@
408+
cd $O && $(MD5SUM) $(UPLOAD_ARTIFACTS) > $@
403409

404410
.PHONY: md5sum
405411
md5sum: $O/$(MD5SUM_FILE)

0 commit comments

Comments
 (0)