cURL / Mailing Lists / curl-users / Single Mail

curl-users

zsh completions fix

From: Christian Weisgerber <naddy_at_mips.inka.de>
Date: Fri, 1 Jan 2016 22:09:58 +0100

It looks to me like the zsh completions aren't generated correctly in
7.46.0 (and still unfixed in the git repo).

scripts/zsh.pl parses the output of "curl --help", but if curl(1) isn't
already installed, this won't work. A full path to curl can be passed
as the first argument to zsh.pl, so let's use this:

--- Makefile.am.orig 2016-01-01 21:50:34.856844000 +0100
+++ Makefile.am 2016-01-01 21:51:03.190722000 +0100
@@ -28,7 +28,7 @@
 
 $(ZSH_COMPLETION_FUNCTION_FILENAME): zsh.pl
         @if ! test -x "$(PERL)"; then echo "No perl: can't install zsh.pl"; exit 0; fi
- $(PERL) $(srcdir)/zsh.pl > $@
+ $(PERL) $(srcdir)/zsh.pl $(top_builddir)/src/curl > $@
 
 install-data-local:
         $(MKDIR_P) $(DESTDIR)$(ZSH_FUNCTIONS_DIR)

-- 
Christian "naddy" Weisgerber                          naddy_at_mips.inka.de
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2016-01-02