Skip to content

Commit 80c7bfb

Browse files
committed
Rename some readmes and fix some dist logic.
1 parent cf31eca commit 80c7bfb

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

Makefile.in

+3-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ LIBRUSTC_GLOB :=$(call CFG_LIB_GLOB,rustc)
114114

115115
# version-string calculation
116116
CFG_GIT_DIR := $(CFG_SRC_DIR).git
117-
CFG_VERSION = prerelease
117+
CFG_RELEASE = prerelease
118+
CFG_VERSION = $(CFG_RELEASE)
119+
118120
ifneq ($(wildcard $(CFG_GIT)),)
119121
ifneq ($(wildcard $(CFG_GIT_DIR)),)
120122
CFG_VERSION += $(shell git --git-dir=$(CFG_GIT_DIR) log -1 \

README renamed to README.txt

File renamed without changes.

mk/dist.mk

+9-8
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
# Distribution
33
######################################################################
44

5-
65
PKG_NAME := rust
7-
PKG_VER = $(shell date +"%Y-%m-%d")-snap
8-
PKG_DIR = $(PKG_NAME)-$(PKG_VER)
6+
PKG_DIR = $(PKG_NAME)-$(CFG_RELEASE)
97
PKG_TAR = $(PKG_DIR).tar.gz
108

119
ifdef CFG_MAKENSIS
@@ -26,11 +24,11 @@ PKG_GITMODULES := \
2624
$(PKG_LLVM_SKEL)
2725

2826
PKG_FILES = \
29-
$(S)LICENSE.txt $(S)README \
27+
$(S)LICENSE.txt $(S)README.txt \
3028
$(S)configure $(S)Makefile.in \
3129
$(S)/doc \
3230
$(addprefix $(S)src/, \
33-
README \
31+
README.txt \
3432
cargo \
3533
comp \
3634
compiletest \
@@ -46,9 +44,6 @@ PKG_FILES = \
4644
$(PKG_GITMODULES) \
4745
$(MKFILE_DEPS)
4846

49-
dist: $(PKG_TAR) $(PKG_EXE)
50-
51-
nsis-dist: $(PKG_EXE)
5247

5348
lic.txt: $(S)LICENSE.txt
5449
@$(call E, crlf: $@)
@@ -67,6 +62,12 @@ $(PKG_TAR): $(PKG_FILES)
6762
$(Q)tar -czf $(PKG_TAR) -C dist $(PKG_DIR)
6863
$(Q)rm -Rf dist
6964

65+
.PHONY: dist nsis-dist distcheck
66+
67+
dist: $(PKG_TAR) $(PKG_EXE)
68+
69+
nsis-dist: $(PKG_EXE)
70+
7071
distcheck: $(PKG_TAR)
7172
$(Q)rm -Rf dist
7273
$(Q)mkdir -p dist
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)