Skip to content

Commit

Permalink
updated make's completion to make compatible with 10-STABLE's bmake
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
  • Loading branch information
opntr committed Oct 23, 2013
1 parent 3131956 commit cb21fd1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dot.tcshrc.complete
Expand Up @@ -549,9 +549,13 @@ endif
underscore useragent= validate verbose version vikeys \
width=)/' 'c/(http|ftp)/$URLS/'


if ( `sysctl -n kern.osreldate` >= 1000000 ) then
complete make 'p@1@`make -ndg1 | & sed -n -E "/=/d; s/(^# )([_a-zA-Z\-]*),(.*)/\2/gp;"`@' \
'n@-V@`make -ndv | & grep Global: | sed -E -e "s/^Global://" -e "s/ .*//" -e "/^[[:lower:]]/d" | sort | uniq`@'
else
complete make 'p@1@`make -pn | sed -n -E "/^[#_.\/[:blank:]]+/d; /=/d; s/[[:blank:]]*:.*//gp;"`@' \
'n@-V@`make -ndv | & grep Global: | sed -E -e "s/^Global://" -e "s/ .*//" -e "/^[[:lower:]]/d" | sort | uniq`@'
endif

complete gmake 'c/{--directory=,--include-dir=}/d/' \
'c/{--assume-new,--assume-old,--makefile,--new-file,--what-if,--file}/f/' \
Expand Down

0 comments on commit cb21fd1

Please sign in to comment.