Skip to content

Commit 7f7fa97

Browse files
wilzbachMartinNowak
authored andcommitted
copy generated man pages to release archives
- generated on linux when building docs
1 parent 1d0c544 commit 7f7fa97

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

create_dmd_release/create_dmd_release.d

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,8 @@ void buildAll(Bits bits, string branch, bool dmdOnly=false)
514514
run(makecmd~" DOC_OUTPUT_DIR="~origDir~"/docs release");
515515
// put into docs/ folder which gets copied to all other platforms
516516
copyFile("d-tags-release.json", origDir~"/docs/d-tags-release.json");
517+
// copy generated man pages to docs/man which gets copied to all other platforms
518+
copyDir(cloneDir~"/dmd/generated/docs/man", origDir~"/docs/man");
517519
}
518520
}
519521
else version (Windows)
@@ -591,15 +593,17 @@ void createRelease(string branch)
591593
!a.startsWith("images/original/") &&
592594
!a.startsWith("chm/") &&
593595
( a.endsWith(".html") || a.startsWith("css/", "images/", "js/") );
596+
// copy docs from linux build
594597
copyDir(origDir~"/docs", releaseDir~"/dmd2/html/d", a => dlangFilter(a));
595598
version(Windows)
596599
{
597600
if(do32Bit)
598601
copyFile(cloneDir~"/dlang.org/d.chm", releaseBin32Dir~"/d.chm");
599602
}
600603
copyDirVersioned(cloneDir~"/dmd/samples", releaseDir~"/dmd2/samples/d");
601-
copyDirVersioned(cloneDir~"/dmd/docs/man", releaseDir~"/dmd2/man");
602604
copyDirVersioned(cloneDir~"/tools/man", releaseDir~"/dmd2/man");
605+
// copy man pages from linux build
606+
copyDir(origDir~"/docs/man", releaseDir~"/dmd2/man");
603607
makeDir(releaseDir~"/dmd2/html/d/zlib");
604608
copyFile(cloneDir~"/phobos/etc/c/zlib/ChangeLog", releaseDir~"/dmd2/html/d/zlib/ChangeLog");
605609
copyFile(cloneDir~"/phobos/etc/c/zlib/README", releaseDir~"/dmd2/html/d/zlib/README");

0 commit comments

Comments
 (0)