examples: Move and install shell examples

The virt-lxc-convert shell script is at this point the
only example we don't install on the target system.

Create a sh/ subdirectory, following the example set by
the existing polkit/, systemtap/ and xml/, and move the
script there; then add rules that will install all example
shell scripts as documentation.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Acked-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Andrea Bolognani 2019-05-22 17:29:44 +02:00
parent bc43533e53
commit 81c2486ab7
2 changed files with 8 additions and 1 deletions

View File

@ -22,6 +22,10 @@ POLKIT_EXAMPLES = \
$(wildcard $(srcdir)/polkit/*.rules) \
$(NULL)
SH_EXAMPLES = \
$(wildcard $(srcdir)/sh/*) \
$(NULL)
STORAGE_XML_EXAMPLES = \
$(wildcard $(srcdir)/xml/storage/*.xml) \
$(NULL)
@ -35,8 +39,8 @@ TEST_XML_EXAMPLES = \
$(NULL)
EXTRA_DIST = \
lxcconvert/virt-lxc-convert \
$(POLKIT_EXAMPLES) \
$(SH_EXAMPLES) \
$(STORAGE_XML_EXAMPLES) \
$(SYSTEMTAP_EXAMPLES) \
$(TEST_XML_EXAMPLES) \
@ -119,6 +123,9 @@ examplesdir = $(docdir)/examples
polkitexamplesdir = $(examplesdir)/polkit
polkitexamples_DATA = $(POLKIT_EXAMPLES)
shexamplesdir = $(examplesdir)/sh
shexamples_DATA = $(SH_EXAMPLES)
storagexmlexamplesdir = $(examplesdir)/xml/storage
storagexmlexamples_DATA = $(STORAGE_XML_EXAMPLES)