From 65b192c09a54bf3359f5cda0c4cc567efdeeaefc Mon Sep 17 00:00:00 2001 From: Florian Pose Date: Mon, 16 May 2022 10:10:59 +0200 Subject: [PATCH] Install bash completions. --- script/Makefile.am | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/script/Makefile.am b/script/Makefile.am index fe4e8876..56a4bf78 100644 --- a/script/Makefile.am +++ b/script/Makefile.am @@ -4,9 +4,7 @@ # # IgH EtherCAT master # -# $Id$ -# -# Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH +# Copyright (C) 2006-2022 Florian Pose, Ingenieurgemeinschaft IgH # # This file is part of the IgH EtherCAT Master. # @@ -53,6 +51,12 @@ if HAVE_SYSTEMD systemdsystemunit_DATA = ethercat.service endif +completionsdir = $(datadir)/bash-completion/completions +completions_DATA = ethercat.bash_completion + +install-data-hook: + cd $(DESTDIR)$(completionsdir); \ + mv ethercat.bash_completion ethercat # Any precious variable used inside script_templates should appear here expand_script = $(SED) \