[systemd-devel] [PATCH] bash-completion: split completions and move to new location

Michael Biebl mbiebl at gmail.com
Sat Mar 2 13:46:17 PST 2013


since this has been on the TODO list and Kay has poked me about this,
I went ahead and made the bash completion compatible with the new
scheme. I.e. move the files to /usr/share/bash-completions/completions
and make them available under the binary's name.
I decided to split up the large completion file instead of using symlinks.
The duplication is minimal and by splitting up, the files become much
more readable and we only need to actually install those bits which
are enabled via --config.

For now I've hard-coded
bashcompletiondir=$(data)/bash-completion/completions which I think is
good enough.
That said, I can prep a follow-up patch, which makes that configurable
and uses "pkg-config --variable=completionsdir bash-completion".
Pretty much
what we do for --with-dbus*dir.

Let me know if you also want the latter bits.

Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-bash-completion-split-up-completions-and-move-it-out.patch
Type: application/octet-stream
Size: 62946 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20130302/aef7c4fe/attachment-0001.obj>

More information about the systemd-devel mailing list