Skip to content

Commit df68c6f

Browse files
committed
auto merge of #15864 : alexcrichton/rust/rollup, r=alexcrichton
2 parents 9cc39a0 + 414862d commit df68c6f

40 files changed

+2383
-454
lines changed

mk/docs.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ HTML_DEPS += doc/version_info.html
112112
doc/version_info.html: $(D)/version_info.html.template $(MKFILE_DEPS) \
113113
$(wildcard $(D)/*.*) | doc/
114114
@$(call E, version-info: $@)
115-
$(Q)sed -e "s/VERSION/$(CFG_RELEASE)/; s/SHORT_HASH/$(shell echo \
116-
$(CFG_VER_HASH) | head -c 8)/;\
115+
$(Q)sed -e "s/VERSION/$(CFG_RELEASE)/; s/SHORT_HASH/$(\
116+
CFG_SHORT_VER_HASH)/;\
117117
s/STAMP/$(CFG_VER_HASH)/;" $< >$@
118118

119119
GENERATED += doc/version.tex doc/version_info.html

mk/main.mk

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ ifneq ($(wildcard $(subst $(SPACE),\$(SPACE),$(CFG_GIT))),)
4646
ifneq ($(wildcard $(subst $(SPACE),\$(SPACE),$(CFG_GIT_DIR))),)
4747
CFG_VER_DATE = $(shell git --git-dir='$(CFG_GIT_DIR)' log -1 --pretty=format:'%ci')
4848
CFG_VER_HASH = $(shell git --git-dir='$(CFG_GIT_DIR)' rev-parse HEAD)
49-
CFG_VERSION += ($(CFG_VER_HASH) $(CFG_VER_DATE))
49+
CFG_SHORT_VER_HASH = $(shell git --git-dir='$(CFG_GIT_DIR)' rev-parse --short=9 HEAD)
50+
CFG_VERSION += ($(CFG_SHORT_VER_HASH) $(CFG_VER_DATE))
5051
endif
5152
endif
5253

0 commit comments

Comments
 (0)