Skip to content

Commit 3532f29

Browse files
authored
Merge pull request #2200 from wilzbach/win32
[unbreak nightlies] Run the full chmgen script to avoid regressions
2 parents d7885d5 + 4f03a95 commit 3532f29

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

chm-nav.dd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ MODULE=
6868
{"t":"$1","a":"$2$(JOIN_LINE_TAIL $+).html"},
6969
PACKAGE=[$1$(ITEMIZE $+)
7070
PACKAGE_NAME={"t":"$1"},
71+
CHANGELOG_VERSION_NIGHTLY=
7172
CHANGELOG_VERSION_PRE={"t":"$1","a":"$1_pre.html"},
7273
CHANGELOG_VERSION={"t":"$1","a":"$1.html"},
7374
ESCAPES=/"/\"/

ddoc_preprocessor.d

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ auto genChangelogVersion(string fileName, string fileText)
264264
{
265265
import std.regex;
266266
static re = regex(`^[0-9]\.[0-9][0-9][0-9](\.[0-9])?(_pre)?\.dd$`);
267-
if (fileName.dirName.baseName == "changelog")
267+
if (fileName.dirName.baseName == "changelog" || fileName.endsWith("chm-nav.dd"))
268268
{
269269
string macros = "\nCHANGELOG_VERSIONS=";
270270
macros ~= "$(CHANGELOG_VERSION_NIGHTLY)\n";
@@ -308,10 +308,7 @@ auto genSwitches(string fileText)
308308
// flags links should be unique
309309
auto swKey = flag[0 .. flagEndPos < 0 ? $ : flagEndPos];
310310
if (auto v = swKey in seen)
311-
{
312311
swNameMacro = "B";
313-
swKey.writeln;
314-
}
315312
seen[swKey] = 1;
316313

317314
if (flagEndPos < 0)

posix.mak

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -819,14 +819,14 @@ ${STABLE_DMD} ${STABLE_RDMD} ${DUB}: ${STABLE_DMD_ROOT}/.downloaded
819819
################################################################################
820820

821821
# testing menu generation
822-
chm-nav-latest.json : $(DDOC) std.ddoc spec/spec.ddoc ${GENERATED}/modlist-${LATEST}.ddoc changelog/changelog.ddoc chm-nav.dd $(DMD)
823-
$(DMD) -conf= -c -o- -Df$@ $(filter-out $(DMD),$^)
822+
chm-nav-latest.json : $(DDOC) std.ddoc spec/spec.ddoc ${GENERATED}/modlist-${LATEST}.ddoc changelog/changelog.ddoc chm-nav.dd $(DMD) $(DDOC_BIN)
823+
$(DDOC_BIN_DMD) -conf= -c -o- -Df$@ $(filter-out $(DMD) $(DDOC_BIN),$^)
824824

825-
chm-nav-release.json : $(DDOC) std.ddoc spec/spec.ddoc ${GENERATED}/modlist-release.ddoc changelog/changelog.ddoc chm-nav.dd $(DMD)
826-
$(DMD) -conf= -c -o- -Df$@ $(filter-out $(DMD),$^)
825+
chm-nav-release.json : $(DDOC) std.ddoc spec/spec.ddoc ${GENERATED}/modlist-release.ddoc changelog/changelog.ddoc chm-nav.dd $(DMD) $(DDOC_BIN)
826+
$(DDOC_BIN_DMD) -conf= -c -o- -Df$@ $(filter-out $(DMD) $(DDOC_BIN),$^)
827827

828-
chm-nav-prerelease.json : $(DDOC) std.ddoc spec/spec.ddoc ${GENERATED}/modlist-prerelease.ddoc changelog/changelog.ddoc chm-nav.dd $(DMD)
829-
$(DMD) -conf= -c -o- -Df$@ $(filter-out $(DMD),$^)
828+
chm-nav-prerelease.json : $(DDOC) std.ddoc spec/spec.ddoc ${GENERATED}/modlist-prerelease.ddoc changelog/changelog.ddoc chm-nav.dd $(DMD) $(DDOC_BIN)
829+
$(DDOC_BIN_DMD) -conf= -c -o- -Df$@ $(filter-out $(DMD) $(DDOC_BIN),$^)
830830

831831
################################################################################
832832
# Dman tags
@@ -836,10 +836,10 @@ d-latest.tag d-tags-latest.json : chmgen.d $(STABLE_DMD) $(ALL_FILES) phobos-lat
836836
$(STABLE_RDMD) chmgen.d --root=$W --only-tags --target latest
837837

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

841841
d-prerelease.tag d-tags-prerelease.json : chmgen.d $(STABLE_DMD) $(ALL_FILES) phobos-prerelease druntime-prerelease chm-nav-prerelease.json
842-
$(STABLE_RDMD) chmgen.d --root=$W --only-tags --target prerelease
842+
$(STABLE_RDMD) chmgen.d --root=$W --target prerelease
843843

844844
################################################################################
845845
# Assert -> writeln magic

std.ddoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ MODULE2=$(MODULE $2, $1, $+)
3232
MODULE3=$(MODULE $3, $1, $+)
3333
MODULE4=$(MODULE $4, $1, $+)
3434
MODULE5=$(MODULE $5, $1, $+)
35+
MODULE6=$(MODULE $6, $1, $+)
36+
MODULE7=$(MODULE $7, $1, $+)
37+
MODULE8=$(MODULE $8, $1, $+)
3538
PACKAGE=$1$(ITEMIZE $+)
3639
PACKAGE_NAME=$(T h7,$(D $1))
3740
JOIN_LINE_TAIL=$(JOIN_LINE $+)

0 commit comments

Comments
 (0)