Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 173775 Details for
Bug 249271
Version bump: app-shells/bash-completion-20080705
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
20080705/05_all_better_make.patch
05_all_better_make.patch (text/plain), 1.62 KB, created by
Santiago M. Mola (RETIRED)
on 2008-11-29 16:31:26 UTC
(
hide
)
Description:
20080705/05_all_better_make.patch
Filename:
MIME Type:
Creator:
Santiago M. Mola (RETIRED)
Created:
2008-11-29 16:31:26 UTC
Size:
1.62 KB
patch
obsolete
>Source: Mike Kelly <pioto@exherbo.org> >Upstream: no >Reason: Use make -qp to parse the Makefile for us, so we get proper completion > on things like pattern rules. > >--- bash_completion 2006-03-01 11:20:18.000000000 -0500 >+++ bash_completion 2007-11-01 19:27:33.000000000 -0400 >@@ -2795,17 +2795,6 @@ > fi > done > >- # make reads `GNUmakefile', then `makefile', then `Makefile' >- if [ -f ${makef_dir}/GNUmakefile ]; then >- makef=${makef_dir}/GNUmakefile >- elif [ -f ${makef_dir}/makefile ]; then >- makef=${makef_dir}/makefile >- elif [ -f ${makef_dir}/Makefile ]; then >- makef=${makef_dir}/Makefile >- else >- makef=${makef_dir}/*.mk # local convention >- fi >- > # before we scan for targets, see if a Makefile name was > # specified with -f > for (( i=0; i < ${#COMP_WORDS[@]}; i++ )); do >@@ -2816,18 +2805,14 @@ > fi > done > >- [ ! -f $makef ] && return 0 >+ [[ -n "$makef" ]] && makef="-f ${makef}" >+ [[ -n "$makef_dir" ]] && makef_dir="-C ${makef_dir}" > >- # deal with included Makefiles >- makef_inc=$( grep -E '^-?include' $makef | sed -e "s,^.* ,"$makef_dir"/," ) >+ COMPREPLY=( $( make -qp $makef $makef_dir 2>/dev/null | \ >+ awk -F':' '/^[a-zA-Z0-9][^$#\/\t=]*:([^=]|$)/ \ >+ {split($1,A,/ /);for(i in A)print A[i]}' | \ >+ command grep "^$cur" )) > >- for file in $makef_inc; do >- [ -f $file ] && makef="$makef $file" >- done >- >- COMPREPLY=( $( awk -F':' '/^[a-zA-Z0-9][^$#\/\t=]*:([^=]|$)/ \ >- {split($1,A,/ /);for(i in A)print A[i]}' \ >- $makef 2>/dev/null | command grep "^$cur" )) > fi > } && > complete -f -F _make $filenames make gmake gnumake pmake
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 249271
:
173767
|
173769
|
173770
|
173772
|
173773
| 173775 |
173776
|
173777