diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2015-11-20 04:56:10 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-11-24 22:22:01 +0100 |
commit | be0d4141af6de8380d24180eab316c898fcb27e1 (patch) | |
tree | 97ec45b8328f9f90619cd67692e74297c37b62f4 /scripts | |
parent | 40c349ada92865faadd0de92fa5dc0d50ba67eb3 (diff) |
build: Install zsh completion
Fixes #534
Closes #537
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.am | 13 |
1 files changed, 13 insertions, 0 deletions
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) |