Fantu
2012-Feb-22 14:59 UTC
[PATCH] tools/examples: Move readmes and examples to subdirectory docs
tools/examples: Move readmes and examples to subdirectory docs Signed-off-by: Fabio Fantoni <fabio.fantoni@heliman.it> --- diff --git a/tools/examples/Makefile b/tools/examples/Makefile index 8cea724..be71872 100644 --- a/tools/examples/Makefile +++ b/tools/examples/Makefile @@ -7,20 +7,20 @@ XENDOMAINS_INITD = init.d/xendomains XENDOMAINS_SYSCONFIG = init.d/sysconfig.xendomains # Xen configuration dir and configs to go there. -XEN_READMES = README -XEN_READMES += README.incompatibilities +XEN_DOCS = README +XEN_DOCS += README.incompatibilities XEN_CONFIGS = xend-config.sxp XEN_CONFIGS += xm-config.xml -XEN_CONFIGS += xmexample1 -XEN_CONFIGS += xmexample2 -XEN_CONFIGS += xmexample3 -XEN_CONFIGS += xmexample.hvm -XEN_CONFIGS += xmexample.hvm-stubdom -XEN_CONFIGS += xmexample.pv-grub -XEN_CONFIGS += xmexample.nbd -XEN_CONFIGS += xmexample.vti -XEN_CONFIGS += xlexample.hvm -XEN_CONFIGS += xlexample.pvlinux +XEN_DOCS += xmexample1 +XEN_DOCS += xmexample2 +XEN_DOCS += xmexample3 +XEN_DOCS += xmexample.hvm +XEN_DOCS += xmexample.hvm-stubdom +XEN_DOCS += xmexample.pv-grub +XEN_DOCS += xmexample.nbd +XEN_DOCS += xmexample.vti +XEN_DOCS += xlexample.hvm +XEN_DOCS += xlexample.pvlinux XEN_CONFIGS += xend-pci-quirks.sxp XEN_CONFIGS += xend-pci-permissive.sxp XEN_CONFIGS += xl.conf @@ -33,15 +33,17 @@ all: build: .PHONY: install -install: all install-readmes install-configs $(HOTPLUGS) +install: all install-docs install-configs $(HOTPLUGS) -.PHONY: install-readmes -install-readmes: +.PHONY: install-docs +install-docs: [ -d $(DESTDIR)$(XEN_CONFIG_DIR) ] || \ $(INSTALL_DIR) $(DESTDIR)$(XEN_CONFIG_DIR) - set -e; for i in $(XEN_READMES); \ - do [ -e $(DESTDIR)$(XEN_CONFIG_DIR)/$$i ] || \ - $(INSTALL_DATA) $$i $(DESTDIR)$(XEN_CONFIG_DIR); \ + [ -d $(DESTDIR)$(XEN_CONFIG_DIR)/docs ] || \ + $(INSTALL_DIR) $(DESTDIR)$(XEN_CONFIG_DIR)/docs + set -e; for i in $(XEN_DOCS); \ + do [ -e $(DESTDIR)$(XEN_CONFIG_DIR)/docs/$$i ] || \ + $(INSTALL_DATA) $$i $(DESTDIR)$(XEN_CONFIG_DIR)/docs/; \ done .PHONY: install-configs -- View this message in context: http://xen.1045712.n5.nabble.com/PATCH-tools-examples-Move-readmes-and-examples-to-subdirectory-docs-tp5505329p5505329.html Sent from the Xen - Dev mailing list archive at Nabble.com.
Fabio Fantoni
2012-Feb-28 14:03 UTC
[PATCH] tools/examples: Move readmes and examples to subdirectory docs
Ian Jackson
2012-Mar-01 17:53 UTC
Re: [PATCH] tools/examples: Move readmes and examples to subdirectory docs
Fabio Fantoni writes ("[Xen-devel] [PATCH] tools/examples: Move readmes and examples to subdirectory docs"):> tools/examples: Move readmes and examples to subdirectory docsThis patch has been mangled and I cannot apply it to see the results. Can you please investigate your email client ? If all else fails, you can send a copy of the patch as an attachment as well as inline. Thanks, Ian.
Fantu
2012-Mar-01 17:57 UTC
Re: [PATCH] tools/examples: Move readmes and examples to subdirectory docs
Ian Jackson-2 wrote> > Fabio Fantoni writes ("[Xen-devel] [PATCH] tools/examples: Move readmes > and examples to subdirectory docs"): >> tools/examples: Move readmes and examples to subdirectory docs > > This patch has been mangled and I cannot apply it to see the results. > Can you please investigate your email client ? If all else fails, you > can send a copy of the patch as an attachment as well as inline. > > Thanks, > Ian. > > _______________________________________________ > Xen-devel mailing list > Xen-devel@.xen > http://lists.xen.org/xen-devel >There is already also attachment -- View this message in context: http://xen.1045712.n5.nabble.com/PATCH-tools-examples-Move-readmes-and-examples-to-subdirectory-docs-tp5521913p5528662.html Sent from the Xen - Dev mailing list archive at Nabble.com.
Ian Jackson
2012-Mar-01 18:50 UTC
Re: [PATCH] tools/examples: Move readmes and examples to subdirectory docs
Fantu writes ("Re: [Xen-devel] [PATCH] tools/examples: Move readmes and examples to subdirectory docs"):> There is already also attachmentSo there is, sorry for not spotting it. I took a look at the results, and they include /etc/xen/docs. I don''t think that''s right. They should be in dist/install/usr/share/doc/xen somewhere. usr/share/doc/xen/examples perhaps. Ian.
Fantu
2012-Mar-02 09:32 UTC
Re: [PATCH] tools/examples: Move readmes and examples to subdirectory docs
I thought it best to remain there because of the DomU config files are put there. Now I redo the patch with move it on /usr/share/doc/xen/examples -- View this message in context: http://xen.1045712.n5.nabble.com/PATCH-tools-examples-Move-readmes-and-examples-to-subdirectory-docs-tp5521913p5530472.html Sent from the Xen - Dev mailing list archive at Nabble.com.