]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
scripts: fix zsh completion generation
authorAlessandro Ghedini <alessandro@ghedini.me>
Sun, 27 Dec 2015 17:08:53 +0000 (18:08 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 11 Jan 2016 22:32:30 +0000 (23:32 +0100)
The script should use the just-built curl, not the system one. This fixes
zsh completion generation when no system curl is installed.

scripts/Makefile.am

index d10f46aaeab83816b039fa4ff7e3cf400d5986ec..e4855676612eed0359f8e08c1fbbb56f03de9eca 100644 (file)
@@ -28,7 +28,7 @@ all-local: $(ZSH_COMPLETION_FUNCTION_FILENAME)
 
 $(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)