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

Prefer bash-completion directory from pkg-config #247

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

robert-scheck
Copy link
Contributor

@robert-scheck robert-scheck commented Jun 13, 2024

As of writing, the bash-completion configuration is installed in the $(sysconfdir)/bash_completion.d/ directory, while downstreams, such as Linux distributions, might prefer /usr/share/bash-completion/completions/ (or even another path). For this, the pkg-config configuration file from bash-completion provides a variable being leveraged here (with fallback to the current directory).

To avoid breaking old Linux distributions with pkg-config < 0.28, some autoconf code for backwards compatibility is added, too.

...with backwards compatibility for pkg-config < 0.28
@robert-scheck robert-scheck changed the title Select bash-completion directory from pkg-config Prefer bash-completion directory from pkg-config Jun 13, 2024
@Thomas-Tsai Thomas-Tsai merged commit 8e5b878 into Thomas-Tsai:master Jun 14, 2024
1 check passed
@robert-scheck robert-scheck deleted the bash-completion branch June 14, 2024 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants