]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
autotools: install shell completion files on cross build
authorHelmut Grohne <helmut@subdivi.de>
Wed, 23 Apr 2025 08:54:28 +0000 (09:54 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 23 Apr 2025 21:21:05 +0000 (23:21 +0200)
 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 <samueloph@debian.org>
Closes #17159

scripts/Makefile.am

index 705a77a09e75a881bee97e62bef2345e6c38c7af..8cd5b77b78e58a12523fdded146d2df5b1aaef43 100644 (file)
@@ -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)