mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
libutil: Implement zsh and bash autocompletion
Add functionality for generating autocompletion scripts, allowing for tab completion of tool options for bash and zsh. This functionality relies on reading the available options from the util_opt struct at runtime. The script generation happens on the build system. Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com> Reviewed-by: Steffen Eiden <seiden@linux.ibm.com> Signed-off-by: Szabina Korbai <szkorbai@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
committed by
Steffen Eiden
parent
70157462d8
commit
638cbbe332
+5
-2
@@ -1,13 +1,16 @@
|
||||
include ../common.mak
|
||||
include ../common_autocomp.mak
|
||||
|
||||
lib := libutil.a
|
||||
|
||||
sources := $(filter-out %_example.c,$(wildcard *.c))
|
||||
sources := $(filter-out %_example.c %_host.c, $(wildcard *.c))
|
||||
objects := $(patsubst %.c,%.o,$(sources))
|
||||
|
||||
autocomp-object := util_autocomp_host.o
|
||||
|
||||
examples := $(patsubst %.c,%,$(wildcard *_example.c))
|
||||
|
||||
all: $(lib)
|
||||
all: $(lib) $(autocomp-object)
|
||||
examples: $(examples)
|
||||
|
||||
$(examples): %: %.o $(lib)
|
||||
|
||||
Reference in New Issue
Block a user