From be0d4141af6de8380d24180eab316c898fcb27e1 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Fri, 20 Nov 2015 04:56:10 +0000 Subject: build: Install zsh completion Fixes #534 Closes #537 --- scripts/Makefile.am | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 scripts/Makefile.am (limited to 'scripts') diff --git a/scripts/Makefile.am b/scripts/Makefile.am new file mode 100644 index 000000000..6978d4194 --- /dev/null +++ b/scripts/Makefile.am @@ -0,0 +1,13 @@ +ZSH_FUNCTIONS_DIR = @ZSH_FUNCTIONS_DIR@ +PERL = @PERL@ + +ZSH_COMPLETION_FUNCTION_FILENAME = _curl + +all-local: $(ZSH_COMPLETION_FUNCTION_FILENAME) + +$(ZSH_COMPLETION_FUNCTION_FILENAME): zsh.pl + $(PERL) $< > $@ + +install-data-local: + $(MKDIR_P) $(ZSH_FUNCTIONS_DIR) + $(INSTALL_DATA) $(ZSH_COMPLETION_FUNCTION_FILENAME) $(ZSH_FUNCTIONS_DIR)/$(ZSH_COMPLETION_FUNCTION_FILENAME) -- cgit v1.2.3