Skip to content

Commit 774b335

Browse files
authored
Merge pull request #2305 from wilzbach/xml.fixup
Fix indendation in the new DBlog.xml tools + move all other build scripts to tools/ merged-on-behalf-of: Vladimir Panteleev <github@thecybershadow.net>
2 parents eeff99c + 07bf934 commit 774b335

File tree

7 files changed

+19
-19
lines changed

7 files changed

+19
-19
lines changed

posix.mak

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -413,19 +413,19 @@ ${GENERATED}/${LATEST}.ddoc :
413413
mkdir -p $(dir $@)
414414
echo "LATEST=${LATEST}" >$@
415415

416-
${GENERATED}/modlist-${LATEST}.ddoc : modlist.d ${STABLE_DMD} $(DRUNTIME_LATEST_DIR) $(PHOBOS_LATEST_DIR) $(DMD_LATEST_DIR)
416+
${GENERATED}/modlist-${LATEST}.ddoc : tools/modlist.d ${STABLE_DMD} $(DRUNTIME_LATEST_DIR) $(PHOBOS_LATEST_DIR) $(DMD_LATEST_DIR)
417417
mkdir -p $(dir $@)
418-
$(STABLE_RDMD) modlist.d $(DRUNTIME_LATEST_DIR) $(PHOBOS_LATEST_DIR) $(DMD_LATEST_DIR) $(MOD_EXCLUDES_LATEST) \
418+
$(STABLE_RDMD) $< $(DRUNTIME_LATEST_DIR) $(PHOBOS_LATEST_DIR) $(DMD_LATEST_DIR) $(MOD_EXCLUDES_LATEST) \
419419
$(addprefix --dump , object std etc core) --dump dmd >$@
420420

421-
${GENERATED}/modlist-release.ddoc : modlist.d ${STABLE_DMD} $(DRUNTIME_DIR) $(PHOBOS_DIR) $(DMD_DIR)
421+
${GENERATED}/modlist-release.ddoc : tools/modlist.d ${STABLE_DMD} $(DRUNTIME_DIR) $(PHOBOS_DIR) $(DMD_DIR)
422422
mkdir -p $(dir $@)
423-
$(STABLE_RDMD) modlist.d $(DRUNTIME_DIR) $(PHOBOS_DIR) $(DMD_DIR) $(MOD_EXCLUDES_RELEASE) \
423+
$(STABLE_RDMD) $< $(DRUNTIME_DIR) $(PHOBOS_DIR) $(DMD_DIR) $(MOD_EXCLUDES_RELEASE) \
424424
$(addprefix --dump , object std etc core) --dump dmd >$@
425425

426-
${GENERATED}/modlist-prerelease.ddoc : modlist.d ${STABLE_DMD} $(DRUNTIME_DIR) $(PHOBOS_DIR) $(DMD_DIR)
426+
${GENERATED}/modlist-prerelease.ddoc : tools/modlist.d ${STABLE_DMD} $(DRUNTIME_DIR) $(PHOBOS_DIR) $(DMD_DIR)
427427
mkdir -p $(dir $@)
428-
$(STABLE_RDMD) modlist.d $(DRUNTIME_DIR) $(PHOBOS_DIR) $(DMD_DIR) $(MOD_EXCLUDES_PRERELEASE) \
428+
$(STABLE_RDMD) $< $(DRUNTIME_DIR) $(PHOBOS_DIR) $(DMD_DIR) $(MOD_EXCLUDES_PRERELEASE) \
429429
$(addprefix --dump , object std etc core dmd rt) >$@
430430

431431
# Run "make -j rebase" for rebasing all dox in parallel!
@@ -825,20 +825,20 @@ chm-nav-prerelease.json : $(DDOC) std.ddoc spec/spec.ddoc ${GENERATED}/modlist-p
825825
# Dman tags
826826
################################################################################
827827

828-
d-latest.tag d-tags-latest.json : chmgen.d $(STABLE_DMD) $(ALL_FILES) phobos-latest druntime-latest chm-nav-latest.json
829-
$(STABLE_RDMD) chmgen.d --root=$W --target latest
828+
d-latest.tag d-tags-latest.json : tools/chmgen.d $(STABLE_DMD) $(ALL_FILES) phobos-latest druntime-latest chm-nav-latest.json
829+
$(STABLE_RDMD) $< --root=$W --target latest
830830

831-
d-release.tag d-tags-release.json : chmgen.d $(STABLE_DMD) $(ALL_FILES) phobos-release druntime-release chm-nav-release.json
832-
$(STABLE_RDMD) chmgen.d --root=$W --target release
831+
d-release.tag d-tags-release.json : tools/chmgen.d $(STABLE_DMD) $(ALL_FILES) phobos-release druntime-release chm-nav-release.json
832+
$(STABLE_RDMD) $< --root=$W --target release
833833

834-
d-prerelease.tag d-tags-prerelease.json : chmgen.d $(STABLE_DMD) $(ALL_FILES) phobos-prerelease druntime-prerelease chm-nav-prerelease.json
835-
$(STABLE_RDMD) chmgen.d --root=$W --target prerelease
834+
d-prerelease.tag d-tags-prerelease.json : tools/chmgen.d $(STABLE_DMD) $(ALL_FILES) phobos-prerelease druntime-prerelease chm-nav-prerelease.json
835+
$(STABLE_RDMD) $< --root=$W --target prerelease
836836

837837
################################################################################
838838
# Style tests
839839
################################################################################
840840

841-
test_dspec: dspec_tester.d $(DMD) $(PHOBOS_LIB)
841+
test_dspec: tools/dspec_tester.d $(DMD) $(PHOBOS_LIB)
842842
@echo "Test the D Language specification"
843843
$(DMD) -run $< --compiler=$(DMD)
844844

@@ -849,8 +849,8 @@ test: test_dspec test/next_version.sh all | $(STABLE_DMD) $(DUB)
849849
@echo "Searching for tabs"
850850
@grep -n -P "\t" $$(find . -type f -name "*.dd" | grep -v .generated) ; test $$? -eq 1
851851
@echo "Checking DDoc's output"
852-
$(STABLE_RDMD) -main -unittest check_ddoc.d
853-
$(STABLE_RDMD) check_ddoc.d $$(find $W -type f -name "*.html" -not -path "$W/phobos/*")
852+
$(STABLE_RDMD) -main -unittest tools/check_ddoc.d
853+
$(STABLE_RDMD) tools/check_ddoc.d $$(find $W -type f -name "*.html" -not -path "$W/phobos/*")
854854
@echo "Executing ddoc_preprocessor tests"
855855
$(DUB) test --compiler=${STABLE_DMD} --root ddoc
856856
@echo "Executing next_version tests"
File renamed without changes.

chmgen.d renamed to tools/chmgen.d

File renamed without changes.

tools/ddoc_xml_extractor.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ auto toDdoc(const ref Article article, string suffix)
3030
with(article)
3131
{
3232
auto prettyMonth = ["January", "February", "March", "April", "May", "June", "July",
33-
"August", "September", "October", "November", "December"][date.month-1];
33+
"August", "September", "October", "November", "December"][date.month - 1];
3434
auto prettyDate = "%s %d, %d".format(prettyMonth, date.day, date.year);
3535
text =
3636
`DBLOG_LATEST_TITLE%5$s=%1$s

dspec_tester.d renamed to tools/dspec_tester.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ int main(string[] args)
9292
import std.process : environment;
9393
import std.typecons : Tuple;
9494

95-
auto specDir = __FILE_FULL_PATH__.dirName.buildPath("spec");
95+
auto specDir = __FILE_FULL_PATH__.dirName.dirName.buildPath("spec");
9696
bool hasFailed;
9797

9898
config.dmdBinPath = environment.get("DMD", "dmd");
File renamed without changes.

win32.mak

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ HHC=$(ProgramFiles)\HTML Help Workshop\hhc.exe
1515

1616
chm : d.chm
1717

18-
chmgen.exe : chmgen.d
18+
chmgen.exe : tools\chmgen.d
1919
$(DMD) -g chmgen
2020

2121
chm\d.hhp chm\d.hhc chm\d.hhk : chmgen.exe chm-nav-release.json $(TARGETS)
@@ -30,7 +30,7 @@ d.chm : chm\d.chm
3030
chm-nav-release.json : $(DDOC) std.ddoc spec\spec.ddoc modlist-release.ddoc changelog\changelog.ddoc chm-nav.dd
3131
$(DMD) -o- -c -Df$@ $**
3232

33-
modlist-release.ddoc : modlist.d
33+
modlist-release.ddoc : tools\modlist.d
3434
# need + to run as sub-cmd, redirect doesn't work otherwise
3535
+$(DMD) -run modlist.d ..\druntime ..\phobos $(MOD_EXCLUDES_RELEASE) >$@
3636

0 commit comments

Comments
 (0)