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:
		
							parent
							
								
									3971dcbf0e
								
							
						
					
					
						commit
						3ce4e265dd
					
				
					 1 changed files with 6 additions and 4 deletions
				
			
		| 
						 | 
					@ -3245,10 +3245,12 @@ and copy/paste text in the console and in xterm.")
 | 
				
			||||||
                   (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")))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue