Skip to content
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

Proposed solution for automatic manpage recreation. #50

Merged
merged 3 commits into from
Feb 3, 2024

Conversation

GregoryLand
Copy link
Contributor

I created a way of handling rebuilding of manpages to resolve #49. Feel free to comment or request changes.

@johnramsden
Copy link
Owner

Thanks @GregoryLand

Im getting the following:

[ 91%] Generating man page : zectl.8.scd -> zectl.8
/bin/sh: line 1: SCDOC-NOTFOUND: command not found
make[2]: *** [docs/CMakeFiles/manpages.dir/build.make:71: docs/zectl.8] Error 127
make[2]: *** Deleting file 'docs/zectl.8'
make[1]: *** [CMakeFiles/Makefile2:263: docs/CMakeFiles/manpages.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

scdoc is installed:

$ which scdoc
/usr/sbin/scdoc

@johnramsden johnramsden self-assigned this Feb 3, 2024
@GregoryLand
Copy link
Contributor Author

Are you using the scdoc Arch package? If so it should be in /usr/bin/scdoc. Can you give me some details on your build environment? I don't think /usr/sbin is part of my local systems $PATH. Could you check your $PATH variable for me?

@johnramsden johnramsden merged commit adc8c81 into johnramsden:master Feb 3, 2024
@johnramsden
Copy link
Owner

Oh, i made a new shell, works now. Thanks! Merged.

lrwxrwxrwx 1 root root 3 Sep 18 06:18 /usr/sbin -> bin

@GregoryLand
Copy link
Contributor Author

Okay good. With the Arch package the scdoc.pc file has
prefix=/usr exec_prefix=${prefix} scdoc=${exec_prefix}/bin/scdoc in it. I was pretty sure using find_program was the right call there. Glad it works now.

@GregoryLand GregoryLand deleted the manpage branch February 3, 2024 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Manpage not being automatically rebuilt
2 participants