Remove warning on first build after clone

Created a new file, dummy.xml, that is copied to
./general/prog/python-dependencies/pythonhosted.xml
if that file does not already exist. This avoids a warning
when generating the book for the first time after
cloning the source from the repository.
This commit is contained in:
Bruce Dubbs 2023-01-20 12:04:25 -06:00
parent 5327b2af3c
commit b6ad4e01f9
2 changed files with 12 additions and 3 deletions

View File

@ -287,9 +287,9 @@ $(PYHOSTED): $(ALL_PYTHON_DEPS) \
$(PYTHONHOSTED_MOD_PAGES) \
stylesheets/pyhosted-inc.xsl \
stylesheets/pythonhosted.xsl | version.ent
@echo Generating pythonhosted.xml; \
if [ ! -f $@ ]; then \
echo The following warning can be ignored...; \
@echo Generating pythonhosted.xml; \
if [ ! -f $@ ]; then \
cp dummy.xml $(PYHOSTED); \
fi
$(Q)xsltproc --xinclude \
--output temp.xml \

9
dummy.xml Normal file
View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
]>
<sect2>
<!-- Used in Makefile to avoid warning for first build of
general/prog/python-dependencies/pythonhosted.xml
-->
</sect2>