gnu: btrfs-progs: Fix bash completions.

This is a follow-up to commit 9a1c4a981b.  Bash
completions must have the same name as the executable.

* gnu/packages/linux.scm (btrfs-progs)[arguments]: Rename "btrfs-completion"
script to "btrfs".
This commit is contained in:
Marius Bakke 2018-02-17 15:56:01 +01:00
parent 3971dcbf0e
commit 3ce4e265dd
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 6 additions and 4 deletions

View File

@ -3245,10 +3245,12 @@ and copy/paste text in the console and in xterm.")
(lambda _ (zero? (system* "make" "static"))))
(add-after 'install 'install-bash-completion
(lambda* (#:key outputs #:allow-other-keys)
(install-file "btrfs-completion"
(string-append (assoc-ref outputs "out")
"/etc/bash_completion.d"))
#t))
(let* ((out (assoc-ref outputs "out"))
(bashcomp (string-append out "/etc/bash_completion.d")))
(mkdir-p bashcomp)
(copy-file "btrfs-completion"
(string-append bashcomp "/btrfs"))
#t)))
(add-after 'install 'install-static
(let ((staticbin (string-append (assoc-ref %outputs "static")
"/bin")))