zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: _make support ports/pkgsrc.
@ 1999-11-02 12:34 Tanaka Akira
  0 siblings, 0 replies; only message in thread
From: Tanaka Akira @ 1999-11-02 12:34 UTC (permalink / raw)
  To: zsh-workers

This patch modifies _make to support FreeBSD/OpenBSD's ports and
NetBSD's pkgsrc make entries.

I think it doesn't become a problem on other systems.

Index: Completion/User/_make
===================================================================
RCS file: /projects/zsh/zsh/Completion/User/_make,v
retrieving revision 1.1.1.10
diff -u -r1.1.1.10 _make
--- Completion/User/_make	1999/08/19 11:18:37	1.1.1.10
+++ Completion/User/_make	1999/11/02 12:29:31
@@ -20,6 +20,10 @@
 
   _description expl 'make target'
   [[ -n "$file" ]] &&
-    compadd "$expl[@]" - $(awk '/^[a-zA-Z0-9][^\/ 	]+:/ {print $1}' FS=: $file) && ret=0
+    compadd "$expl[@]" - \
+      $(awk '/^[a-zA-Z0-9][^\/ \t]+:/ {print $1}
+	     /^\.include  *<bsd\.port\.(subdir\.|pre\.|)mk>/ || /^\.include  *".*mk\/bsd\.pkg\.(subdir\.|)mk"/ {
+	       print "fetch fetch-list extract patch configure build install reinstall deinstall package describe checkpatch checksum makesum" }' \
+	    FS=: $file) && ret=0
   (( ret )) && { compset -P 1 '*\='; _files }
 fi
-- 
Tanaka Akira


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-11-02 12:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-02 12:34 PATCH: _make support ports/pkgsrc Tanaka Akira

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).