Signed-off-by: Daniel P. Berrangé <berrange(a)redhat.com>
---
Makefile.am | 1 +
cfg.mk | 2 +-
docs/Makefile.am | 5 ++---
{docs => scripts}/apibuild.py | 0
4 files changed, 4 insertions(+), 4 deletions(-)
rename {docs => scripts}/apibuild.py (100%)
diff --git a/Makefile.am b/Makefile.am
index 4b82cdee35..e63c005db7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -45,6 +45,7 @@ EXTRA_DIST = \
run.in \
README.md \
AUTHORS.in \
+ scripts/apibuild.py \
scripts/augeas-gentest.py \
scripts/check-aclperms.py \
scripts/check-aclrules.py \
diff --git a/cfg.mk b/cfg.mk
index e7bed7708f..2de23b511b 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -1295,7 +1295,7 @@ exclude_file_name_regexp--sc_trailing_blank = \
/sysinfodata/.*\.data|/virhostcpudata/.*\.cpuinfo|^gnulib/local/.*/.*diff$$
exclude_file_name_regexp--sc_unmarked_diagnostics = \
- ^(docs/apibuild.py|tests/virt-aa-helper-test|docs/js/.*\.js)$$
+ ^(scripts/apibuild.py|tests/virt-aa-helper-test|docs/js/.*\.js)$$
exclude_file_name_regexp--sc_size_of_brackets = cfg.mk
diff --git a/docs/Makefile.am b/docs/Makefile.am
index 3cbf573e25..9f6dbee363 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -163,7 +163,6 @@ schemadir = $(pkgdatadir)/schemas
schema_DATA = $(wildcard $(srcdir)/schemas/*.rng)
EXTRA_DIST= \
- apibuild.py \
site.xsl subsite.xsl newapi.xsl page.xsl \
wrapstring.xsl \
$(dot_html) $(dot_html_in) $(gif) $(apihtml) $(apipng) \
@@ -275,13 +274,13 @@ python_generated_files = \
$(srcdir)/libvirt-admin-refs.xml \
$(NULL)
-APIBUILD=$(srcdir)/apibuild.py
+APIBUILD=$(top_srcdir)/scripts/apibuild.py
APIBUILD_STAMP=$(APIBUILD).stamp
EXTRA_DIST += $(APIBUILD_STAMP)
$(python_generated_files): $(APIBUILD_STAMP)
-$(APIBUILD_STAMP): $(srcdir)/apibuild.py \
+$(APIBUILD_STAMP): $(top_srcdir)/scripts/apibuild.py \
$(top_srcdir)/include/libvirt/libvirt.h \
$(top_srcdir)/include/libvirt/libvirt-common.h.in \
$(top_srcdir)/include/libvirt/libvirt-domain-checkpoint.h \
diff --git a/docs/apibuild.py b/scripts/apibuild.py
similarity index 100%
rename from docs/apibuild.py
rename to scripts/apibuild.py
--
2.21.0