Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: _make support ports/pkgsrc.



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



Messages sorted by: Reverse Date, Date, Thread, Author