Conversation
|
Thanks for your pull request and interest in making D better, @marler8997! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub fetch digger
dub run digger -- build "master + dmd#10581" |
aebcefe to
99faa4d
Compare
MoonlightSentinel
left a comment
There was a problem hiding this comment.
Some suggestions to improve readability and plattform independency
| .deps([mkdirDep(manFileDep.target.dirName)]) | ||
| .command(["cp", manFileDep.sources[0], manFileDep.target]) | ||
| .msg(manFileDep.command.join(" ")) | ||
| )) |
There was a problem hiding this comment.
Probably better as a local function/lambda before man. That would clearly seperate these dependencies and will probably be easier when using buildPath
There was a problem hiding this comment.
(Comment is referring to the entire map-lambda. Apparently GitHub does not handle multiline review comments - or i messed up)
src/build.d
Outdated
| .target(genManDir.buildPath(e)) | ||
| .sources([dmdRepo.buildPath("docs/man", e)]) | ||
| .deps([mkdirDep(manFileDep.target.dirName)]) | ||
| .command(["cp", manFileDep.sources[0], manFileDep.target]) |
There was a problem hiding this comment.
| .command(["cp", manFileDep.sources[0], manFileDep.target]) | |
| .commandFunction(() { copy(manFileDep.sources[0], manFileDep.target); }) |
There was a problem hiding this comment.
I've done this, but now when the copy occurs the timestamps aren't updated. So on my machine, these dependencies will get executed every time I build the "man" target...
There was a problem hiding this comment.
I've created the copyAndTouch function which makes sure to update the target timestamp using touch on linux platforms.
| ################################################################################ | ||
|
|
||
| DMD_MAN_PAGE = $(GENERATED)/docs/man1/dmd.1 | ||
| DMD_MAN_PAGE = $(GENERATED)/docs/man/man1/dmd.1 |
There was a problem hiding this comment.
This variable is now unused.
There was a problem hiding this comment.
Actually it's still used in the "install" target a few lines down.
|
BTW we also upload the man page to DAutoTest, e.g. http://dtest.dlang.io/artifact/website-08a5fe1c6137cc5879028d65e8b1ee42781468bc-e3a514cecad8d5bfab69f12f20f39d08/web/docs/man/man1/dmd.1 And DAutoTest reporting zero changes is already a good sign 👍 |
7562784 to
011393a
Compare
|
Maybe
|
5719369 to
dc0c245
Compare
|
Looks like this broke all dlang.org builds with @CyberShadow's website build tool, e.g. http://dtest.dlang.io/results/38f11f93084f7f0c502f190deba166837646510a/61fe0b3552e74ce37f4e75b0d5851335c963cbbe/. |
|
@MartinNowak This issue arises because the |
No description provided.