config/sysinv/cgts-client/debian/deb_folder/rules
aoliveir b99519e79f Adjust system command bash dynamic completion
For dynamic bash completion, instead of using the legacy
/etc/bash_completiond.d, the current bash-completion can use a
dynamic mechanism in which the customized completion is called
upon completion activation.
The new location that is already pointed by the .bashrc file,
also engaged by the /etc/bash_completion, is
/usr/share/bash-completion/completions.
However, the bash file was placed under a subfolder with the
name of the command which is not necessary since the file already
contains the command name.
Also, the proper file name shall contain .bash extension.

Test Plan:

PASS: Debian image built and installed successfully
PASS: Upon install check system cmd completion works properly
PASS: Check the system.bash file is under the proper path
PASS: AIO-SX properly bootstrapped
PASS: AIO-SX properly unlocked
PASS: Check after bootstrap and unlock that completion works

Story: 2009965
Task: 45260

Signed-off-by: aoliveir <adriano.oliveira@windriver.com>
Change-Id: Ib711618d695b2ae0e1537962fbe7c03d91b0fe28
2022-05-04 15:36:08 +00:00

20 lines
583 B
Makefile
Executable File

#!/usr/bin/make -f
#export DH_VERBOSE = 1
export PYBUILD_NAME=cgts-client
# (chuck) - workaround for pbr version detection when running install
export PBR_VERSION=1.0.0
ROOT := $(CURDIR)/debian/tmp
%:
dh $@ --with python3 --buildsystem=pybuild
override_dh_install:
python3 setup.py install -f --install-layout=deb \
--root=$(CURDIR)/debian/tmp
python3 setup.py bdist_wheel \
--universal\
-d $(CURDIR)/debian/cgts-client-wheel/usr/share/python-wheels
install -p -D -m 644 tools/system.bash_completion ${ROOT}/usr/share/bash-completion/completions/system.bash
dh_install