-
Notifications
You must be signed in to change notification settings - Fork 56
Unclear how to handle man page generation #151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Use |
Cargo doesn't support generation of man pages: and cargo-deb just wraps |
I thought that might be the case, but wanted to check. Thanks! I should be able to cobble something together using It would be really helpful if there were some documentation somewhere suggesting workarounds. Though, I recognize that as things stand there isn't an obvious best approach to recommend which makes that kind of tricky. |
I realize I'm probably a bit late to this party, but the |
Yeah, I looked at I can see how |
You can run |
Huh, right. I really should have thought of that. I'll have to try that out. I don't want to try to build the man page in every environment - Does anyone happen to know if there's an easy way to determine inside |
You could run That being said, the Cargo book explicitly recommends against writing artifacts such as manual pages outside of |
Yeah, you're probably right. In my particular case, where I'd only be doing it on explicit call to |
The sad part is that cargo-xtask did not define any convention for what should be called at build time, and the way it works made it impossible to discover which tasks are available (since there's one binary and it parses whatever it wants. There's no way to query it programmatically, doesn't even guarantee to support |
I use
help2man
to generate the man page for my project, and that needs to run post-build but before deb generation. Right now I generate the man page manually and add it to the repo. That works, but isn't ideal.Since
cargo build
doesn't support post-build scripts, I was hoping there would be some way to tellcargo deb
to run some post-build logic, but I'm not seeing a clean way to make that happen.Is there a recommended way to generate the man page (or generally do post-build pre-cargo-deb logic)?
The text was updated successfully, but these errors were encountered: