From: Helmut Grohne Date: Wed, 23 Apr 2025 08:54:28 +0000 (+0100) Subject: autotools: install shell completion files on cross build X-Git-Tag: curl-8_14_0~234 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51170b52d15256d4aaf74ed6eea9a9297f5d595c;p=thirdparty%2Fcurl.git autotools: install shell completion files on cross build Before 8.13.0, it was not possible to generate them as it required calling the compiled binary, but this has been fixed. Co-authored-by: Samuel Henrique Closes #17159 --- diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 705a77a09e..8cd5b77b78 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -57,9 +57,6 @@ $(FISH_COMPLETION_FUNCTION_FILENAME): completion.pl endif install-data-local: -if CROSSCOMPILING - @echo 'NOTICE: we cannot install completion scripts when cross-compiling' -else # if not cross-compiling: if USE_ZSH_COMPLETION if test -n "$(PERL)"; then \ $(MKDIR_P) $(DESTDIR)$(ZSH_FUNCTIONS_DIR); \ @@ -72,7 +69,6 @@ if USE_FISH_COMPLETION $(INSTALL_DATA) $(FISH_COMPLETION_FUNCTION_FILENAME) $(DESTDIR)$(FISH_FUNCTIONS_DIR)/$(FISH_COMPLETION_FUNCTION_FILENAME); \ fi endif -endif distclean: rm -f $(CLEANFILES)