From 81c2486ab7dbeab69a217b24270768640a40d120 Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Wed, 22 May 2019 17:29:44 +0200 Subject: [PATCH] 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 Acked-by: Michal Privoznik --- examples/Makefile.am | 9 ++++++++- examples/{lxcconvert => sh}/virt-lxc-convert | 0 2 files changed, 8 insertions(+), 1 deletion(-) rename examples/{lxcconvert => sh}/virt-lxc-convert (100%) diff --git a/examples/Makefile.am b/examples/Makefile.am index c0d0100c9f..d613135086 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -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) diff --git a/examples/lxcconvert/virt-lxc-convert b/examples/sh/virt-lxc-convert similarity index 100% rename from examples/lxcconvert/virt-lxc-convert rename to examples/sh/virt-lxc-convert