Skip to content

Commit 4a168c6

Browse files
committed
Rename latest -> stable
1 parent 0b304a7 commit 4a168c6

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

posix.mak

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
#
1212
# This makefile supports 3 flavors of documentation:
1313
#
14-
# latest Latest released version (by git tag)
14+
# stable Stable build (uses upstream/stable)
1515
# prerelease Master (uses the D repositories as they exist locally)
1616
# release Documentation build that is shipped with the binary release
1717
#
1818
# For `release` the LATEST version is not yet published at build time,
1919
# hence a few things differ from a `prerelease` build.
2020
#
21-
# To build `latest` and `prerelease` docs:
21+
# To build `stable` and `prerelease` docs:
2222
#
2323
# make -f posix.mak all
2424
#
@@ -46,7 +46,7 @@
4646
# phobos-prerelease
4747
# apidocs-prerelease Ddox documentation
4848
#
49-
# B) `docs-latest` (aka stable)
49+
# B) `docs-latest` (aka upstream/stable)
5050
#
5151
# Based on the last official release (git tag), the repositories are freshly cloned from GitHub.
5252
# Individual targets include:
@@ -159,10 +159,10 @@ GENERATED=.generated
159159
G=$(GENERATED)
160160

161161
# Last released versions
162-
DMD_STABLE_DIR=$G/dmd-${LATEST}
162+
DMD_STABLE_DIR=$G/dmd-stable
163163
DMD_STABLE=$(DMD_STABLE_DIR)/generated/$(OS)/release/$(MODEL)/dmd
164-
DRUNTIME_STABLE_DIR=$G/druntime-${LATEST}
165-
PHOBOS_STABLE_DIR=$G/phobos-${LATEST}
164+
DRUNTIME_STABLE_DIR=$G/druntime-stable
165+
PHOBOS_STABLE_DIR=$G/phobos-stable
166166

167167
# Auto-cloning missing directories
168168
$(shell [ ! -d $(DMD_DIR) ] && git clone --depth=1 ${GIT_HOME}/dmd $(DMD_DIR))
@@ -171,7 +171,7 @@ $(shell [ ! -d $(DRUNTIME_DIR) ] && git clone --depth=1 ${GIT_HOME}/druntime $(D
171171
################################################################################
172172
# Automatically generated directories
173173
PHOBOS_DIR_GENERATED=$(GENERATED)/phobos-prerelease
174-
PHOBOS_STABLE_DIR_GENERATED=$(GENERATED)/phobos-latest
174+
PHOBOS_STABLE_DIR_GENERATED=$(GENERATED)/phobos-stable
175175
# The assert_writeln_magic tool transforms all source files from Phobos. Hence
176176
# - a temporary folder with a copy of Phobos needs to be generated
177177
# - a list of all files in Phobos and the temporary copy is needed to setup proper
@@ -181,7 +181,7 @@ PHOBOS_FILES_GENERATED := $(subst $(PHOBOS_DIR), $(PHOBOS_DIR_GENERATED), $(PHOB
181181
ifndef RELEASE
182182
# TODO: should be replaced by make targets
183183
$(shell [ ! -d $(PHOBOS_DIR) ] && git clone --depth=1 ${GIT_HOME}/phobos $(PHOBOS_DIR))
184-
$(shell [ ! -d $(PHOBOS_STABLE_DIR) ] && git clone -b v${LATEST} --depth=1 ${GIT_HOME}/phobos $(PHOBOS_STABLE_DIR))
184+
$(shell [ ! -d $(PHOBOS_STABLE_DIR) ] && git clone -b stable --depth=1 ${GIT_HOME}/phobos $(PHOBOS_STABLE_DIR))
185185
PHOBOS_STABLE_FILES := $(shell find $(PHOBOS_STABLE_DIR) -name '*.d' -o -name '*.mak' -o -name '*.ddoc')
186186
PHOBOS_STABLE_FILES_GENERATED := $(subst $(PHOBOS_STABLE_DIR), $(PHOBOS_STABLE_DIR_GENERATED), $(PHOBOS_STABLE_FILES))
187187
endif
@@ -416,7 +416,7 @@ ${GENERATED}/${LATEST}.ddoc :
416416
mkdir -p $(dir $@)
417417
echo "LATEST=${LATEST}" >$@
418418

419-
${GENERATED}/modlist-${LATEST}.ddoc : modlist.d ${STABLE_DMD} $(DRUNTIME_STABLE_DIR) $(PHOBOS_STABLE_DIR) $(DMD_STABLE_DIR)
419+
${GENERATED}/modlist-stable.ddoc : modlist.d ${STABLE_DMD} $(DRUNTIME_STABLE_DIR) $(PHOBOS_STABLE_DIR) $(DMD_STABLE_DIR)
420420
mkdir -p $(dir $@)
421421
$(STABLE_RDMD) modlist.d $(DRUNTIME_STABLE_DIR) $(PHOBOS_STABLE_DIR) $(DMD_STABLE_DIR) $(MOD_EXCLUDES_STABLE) \
422422
$(addprefix --dump , object std etc core) --dump dmd >$@
@@ -589,8 +589,8 @@ $G/dblog_latest2.ddoc: $G/dblog_latest.ddoc
589589
################################################################################
590590

591591
# Clone snapshots of the latest official release of all main D repositories
592-
$G/%-${LATEST} :
593-
git clone -b v${LATEST} --depth=1 ${GIT_HOME}/$(notdir $*) $@
592+
$G/%-stable :
593+
git clone -b stable --depth=1 ${GIT_HOME}/$(notdir $*) $@
594594

595595
# Clone all main D repositories
596596
${DMD_DIR} ${DRUNTIME_DIR} ${PHOBOS_DIR} ${TOOLS_DIR} ${INSTALLER_DIR}:
@@ -818,7 +818,7 @@ chm-nav-prerelease.json : $(DDOC) std.ddoc spec/spec.ddoc ${GENERATED}/modlist-p
818818
################################################################################
819819

820820
d-latest.tag d-tags-latest.json : chmgen.d $(STABLE_DMD) $(ALL_FILES) phobos-latest druntime-latest chm-nav-latest.json
821-
$(STABLE_RDMD) chmgen.d --root=$W --only-tags --target latest
821+
$(STABLE_RDMD) chmgen.d --root=$W --only-tags --target stable
822822

823823
d-release.tag d-tags-release.json : chmgen.d $(STABLE_DMD) $(ALL_FILES) phobos-release druntime-release chm-nav-release.json
824824
$(STABLE_RDMD) chmgen.d --root=$W --only-tags --target release

0 commit comments

Comments
 (0)