diff --git a/.gitignore b/.gitignore index feb7e88e8e..0b30bb3735 100644 --- a/.gitignore +++ b/.gitignore @@ -43,3 +43,6 @@ modlist-release.ddoc # DUB binaries /assert_writeln_magic + +# Generated changelogs +changelog/*_pre.dd diff --git a/changelog/changelog.ddoc b/changelog/changelog.ddoc index 9bd4c3eb34..13b0554429 100644 --- a/changelog/changelog.ddoc +++ b/changelog/changelog.ddoc @@ -25,6 +25,15 @@ $(SMALL released $1, $2) $4 ) +NIGHTLY_VERSION= +$(DIVC version, +$(P +$(B $(LARGE $(LINK2 http://nightlies.dlang.org, Download D nightlies)))$(BR) +$(SMALL $1) +) +$4 +) + BUGZILLA = Bugzilla $0 CPPBUGZILLA = Bugzilla $0 DSTRESS = dstress $0 diff --git a/posix.mak b/posix.mak index 0fd817d652..a553929b6c 100644 --- a/posix.mak +++ b/posix.mak @@ -121,7 +121,8 @@ ifeq (1,$(DIFFABLE)) NODATETIME := nodatetime.ddoc DPL_DOCS_PATH_RUN_FLAGS := --no-exact-source-links else - CHANGELOG_VERSION := "v${LATEST}..upstream/stable" + CHANGELOG_VERSION_MASTER := "v${LATEST}..upstream/master" + CHANGELOG_VERSION_STABLE := "v${LATEST}..upstream/stable" endif # Documents @@ -171,8 +172,8 @@ SPEC_ROOT=$(addprefix spec/, \ abi simd) SPEC_DD=$(addsuffix .dd,$(SPEC_ROOT)) -CHANGELOG_FILES=$(basename $(subst _pre.dd,.dd,$(wildcard changelog/*.dd))) \ - changelog/${NEXT_VERSION} +CHANGELOG_FILES=changelog/${NEXT_VERSION}_pre \ + $(basename $(subst _pre.dd,.dd,$(wildcard changelog/*.dd))) \ # Website root filenames. They have extension .dd in the source # and .html in the generated HTML. Save for the expansion of @@ -588,12 +589,16 @@ test: # Changelog generation ################################################################################ +changelog/${NEXT_VERSION}_pre.dd: ${STABLE_DMD} ../tools ../installer + $(STABLE_RDMD) $(TOOLS_DIR)/changed.d $(CHANGELOG_VERSION_MASTER) -o $@ \ + --version "${NEXT_VERSION} (upcoming)" --date "To be released" --nightly + changelog/${NEXT_VERSION}.dd: ${STABLE_DMD} ../tools ../installer - $(STABLE_RDMD) $(TOOLS_DIR)/changed.d $(CHANGELOG_VERSION) -o changelog/${NEXT_VERSION}.dd \ - --version "${NEXT_VERSION}" --prev-version "${LATEST}" + $(STABLE_RDMD) $(TOOLS_DIR)/changed.d $(CHANGELOG_VERSION_STABLE) -o $@ \ + --version "${NEXT_VERSION}" pending_changelog: changelog/${NEXT_VERSION}.dd html - @echo "Please open file:///$(shell pwd)/web/changelog/${NEXT_VERSION}.html in your browser" + @echo "Please open file:///$(shell pwd)/web/changelog/${NEXT_VERSION}_pre.html in your browser" ../tools: git clone https://github.com/dlang/tools ../tools