Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@ modlist-release.ddoc

# DUB binaries
/assert_writeln_magic

# Generated changelogs
changelog/*_pre.dd
9 changes: 9 additions & 0 deletions changelog/changelog.ddoc
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <a href="https://issues.dlang.org/show_bug.cgi?id=$0">Bugzilla $0</a>
CPPBUGZILLA = <a href="http://bugzilla.digitalmars.com/issues/show_bug.cgi?id=$0">Bugzilla $0</a>
DSTRESS = dstress $0
Expand Down
17 changes: 11 additions & 6 deletions posix.mak
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down