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

View file

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