-
-
Notifications
You must be signed in to change notification settings - Fork 308
configure: add --mandir to override $mandir on command line. #1800
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
Conversation
WalkthroughThe changes in this pull request involve modifications to the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant ConfigureScript
User->>ConfigureScript: run configure --mandir=/path/to/mandir
ConfigureScript->>ConfigureScript: parse arguments
ConfigureScript->>ConfigureScript: set mandir variable to /path/to/mandir
ConfigureScript-->>User: configuration complete
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
configure (1)
Line range hint
1-1188: Consider initializing mandir variable with a default valueWhile the implementation of the
--mandiroption is correct, it would be beneficial to initialize themandirvariable with a default value earlier in the script, similar to how other configuration variables are handled. This ensures thatmandiralways has a value, even if the--mandiroption is not used.Consider adding a line like this near the other variable initializations (around line 80-90):
mandir=${mandir-'${prefix}/share/man'}This sets a default value while still allowing it to be overridden by environment variables or command-line options.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
- configure (2 hunks)
🔇 Additional comments (2)
configure (2)
162-162: LGTM: Usage instructions updated correctlyThe new
--mandir=MANDIRoption has been properly added to the usage instructions. The formatting is consistent with other options, making it clear and easy to understand for users.
188-188: LGTM: Argument parsing for --mandir implemented correctlyThe new case for handling the
--mandirargument is implemented correctly. It extracts the value after the=sign and assigns it to themandirvariable, consistent with how other similar options are handled in the script.
On some platforms like Haiku the file layout is different than on Linux and *BSD... This allows fixing the layout with single command.
NOTES:
Summary by CodeRabbit
New Features
--mandir=MANDIRoption in the usage instructions for enhanced manual page directory configuration.Bug Fixes
--mandiroption.