doc: fix source file fetching and cleaning

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
This commit is contained in:
David B. Kinder 2018-03-06 17:07:19 -08:00 committed by lijinxia
parent 4c941d5e5b
commit 8d7a449c55
2 changed files with 17 additions and 8 deletions

View File

@ -31,7 +31,7 @@ doxy: pullsource
# Remove generated content (Sphinx and doxygen) # Remove generated content (Sphinx and doxygen)
clean: clean:
$(Q)rm -fr $(BUILDDIR) doxygen hypervisor devicemodel $(Q)rm -fr $(BUILDDIR) doxygen _source
# Copy material over to the GitHub pages staging repo # Copy material over to the GitHub pages staging repo

View File

@ -3,16 +3,25 @@
# pull fresh copies of the ACRN source and copy public API headers # pull fresh copies of the ACRN source and copy public API headers
# over to the documentation tree # over to the documentation tree
if [ ! -d "../acrn-hypervisor" ]; then
echo Repo for acrn-hypervisor is missing.
exit -1
fi
if [ ! -d "../acrn-devicemodel" ]; then
echo Repo for acrn-devicemodel is missing.
exit -1
fi
cd ../acrn-hypervisor;git pull cd ../acrn-hypervisor;git pull
mkdir -p ../acrn_documentation/_source/hypervisor/include/common mkdir -p ../acrn-documentation/_source/hypervisor/include/common
cp include/common/hypercall.h ../acrn_documentation/_source/hypervisor/include/common cp include/common/hypercall.h ../acrn-documentation/_source/hypervisor/include/common
mkdir -p ../acrn_documentation/_source/hypervisor/include/public mkdir -p ../acrn-documentation/_source/hypervisor/include/public
cp include/public/acrn_common.h ../acrn_documentation/_source/hypervisor/include/public cp include/public/acrn_common.h ../acrn-documentation/_source/hypervisor/include/public
cp include/public/acrn_hv_defs.h ../acrn_documentation/_source/hypervisor/include/public cp include/public/acrn_hv_defs.h ../acrn-documentation/_source/hypervisor/include/public
cd ../acrn-devicemodel;git pull cd ../acrn-devicemodel;git pull
mkdir -p ../acrn_documentation/_source/devicemodel/include mkdir -p ../acrn-documentation/_source/devicemodel/include
cp include/virtio.h ../acrn_documentation/_source/devicemodel/include cp include/virtio.h ../acrn-documentation/_source/devicemodel/include