Skip to contentSkip to conversation

daxctl: add bash completion

PATCH New Vishal Verma 1 participant 1 message Jun 14, 2017

Subsystems (2)
lore
Share & tools
lore

Vishal Verma

author maintainer
#0 lore raw

PATCH v2 1/1 daxctl: add bash completion

Add bash completion for the daxctl utility.

---

v2: parsing 'ls' is a Bad Thing. Use shell globs instead.

 Makefile.am    |   2 +-
 contrib/daxctl | 233 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 ndctl.spec.in  |   1 +
 3 files changed, 235 insertions(+), 1 deletion(-)
 create mode 100644 contrib/daxctl
Makefile.am +1 -1
index 2b46736..1ae5a7a 100644
@@ -39,7 +39,7 @@ sles/ndctl.spec: ndctl.spec.in Makefile.am version.m4
 
 if ENABLE_BASH_COMPLETION
 bashcompletiondir = $(BASH_COMPLETION_DIR)
-dist_bashcompletion_DATA = contrib/ndctl
+dist_bashcompletion_DATA = contrib/ndctl contrib/daxctl
 endif
 
 noinst_LIBRARIES = libccan.a
contrib/daxctl new file +233 -0

233 lines not on this page · raw message

ndctl.spec.in +1 -0
index b481762..af106d9 100644
@@ -122,6 +122,7 @@ make check
 %license util/COPYING licenses/BSD-MIT licenses/CC0
 %{_bindir}/daxctl
 %{_mandir}/man1/daxctl*
+%{bashcompdir}/
 
 %files -n LNAME
 %defattr(-,root,root)
Signature · 6 lines
2.9.3

_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm