]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
examples: Move and install shell examples
authorAndrea Bolognani <abologna@redhat.com>
Wed, 22 May 2019 15:29:44 +0000 (17:29 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 3 Jun 2019 15:27:35 +0000 (17:27 +0200)
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>
examples/Makefile.am
examples/sh/virt-lxc-convert [moved from examples/lxcconvert/virt-lxc-convert with 100% similarity]

index c0d0100c9f7c0968dc4da0a51096a2bcf71f820f..d6131350861235027db51567d74b15172ab02154 100644 (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)