From: Sean Dague Subject: [PATCH] add man pages to xen Date: Sun, 31 Jul 2005 23:07:45 -0400 Message-ID: <20050801030745.GB29990@underhill.no-ip.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0329477769==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0329477769== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5/uDoXvLw7AC5HRs" Content-Disposition: inline --5/uDoXvLw7AC5HRs Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment Content-Transfer-Encoding: quoted-printable The following patch adds the beginnings of man pages to xen, specifically the xmdomain.cfg.5 man page, and a very small stub for xm.1, plus the build elements required. This is done using the pod (plain old text) markup and converting to man format with pod2man. If people like this, expect more work in the future to fill out these man pages as well as others. Signed-off-by: Sean Dague Diffstat output: Makefile | 26 ++++++++++++++ man/xm.pod.1 | 5 ++ man/xmdomain.cfg.pod.5 | 87 ++++++++++++++++++++++++++++++++++++++++++++= +++++ 3 files changed, 118 insertions(+) diff -urN xen-unstable.hg/docs/Makefile xen-unstable.sean/docs/Makefile --- xen-unstable.hg/docs/Makefile 2005-07-01 09:10:32.000000000 -0400 +++ xen-unstable.sean/docs/Makefile 2005-07-31 21:38:39.000000000 -0400 @@ -1,5 +1,6 @@ #!/usr/bin/make -f =20 +VERSION =3D xen-unstable INSTALL =3D install INSTALL_DIR =3D $(INSTALL) -d -m0755 =20 @@ -8,9 +9,15 @@ LATEX :=3D latex FIG2DEV :=3D fig2dev LATEX2HTML :=3D latex2html +POD2MAN :=3D pod2man =20 pkgdocdir :=3D /usr/share/doc/xen +mandir :=3D /usr/share/man =20 +DOC_MAN5SRC :=3D $(wildcard man/*.pod.5) +DOC_MAN1SRC :=3D $(wildcard man/*.pod.1) +DOC_MAN1 :=3D $(patsubst man/%.pod.1,man1/%.1,$(DOC_MAN1SRC)) +DOC_MAN5 :=3D $(patsubst man/%.pod.5,man5/%.5,$(DOC_MAN5SRC)) DOC_TEX :=3D $(wildcard src/*.tex) DOC_PS :=3D $(patsubst src/%.tex,ps/%.ps,$(DOC_TEX)) DOC_PDF :=3D $(patsubst src/%.tex,pdf/%.pdf,$(DOC_TEX)) @@ -30,16 +37,35 @@ @if which $(LATEX2HTML) 1>/dev/null 2>/dev/null; then \ $(MAKE) $(DOC_HTML); fi =20 +man-pages: + @if which $(POD2MAN) 1>/dev/null 2>/dev/null; then \ + $(MAKE) $(DOC_MAN1) $(DOC_MAN5); fi + +man1/%.1: man/%.pod.1 Makefile + $(INSTALL_DIR) $(@D) + $(POD2MAN) --release=3D$(VERSION) --name=3D`echo $@ | sed 's/^man1.//'| \ + sed 's/.1//'` -s 1 -c "Xen" $< $@ + +man5/%.5: man/%.pod.5 Makefile + $(INSTALL_DIR) $(@D) + $(POD2MAN) --release=3D$(VERSION) --name=3D`echo $@ | sed 's/^man5.//'| \ + sed 's/.5//'` -s 5 -c "Xen" $< $@ + clean: rm -rf .word_count *.aux *.dvi *.bbl *.blg *.glo *.idx *~=20 rm -rf *.ilg *.log *.ind *.toc *.bak core rm -rf $(GFX) ps pdf html + rm -rf man5=20 + rm -rf man1 =20 install: all rm -rf $(DESTDIR)$(pkgdocdir) $(INSTALL_DIR) $(DESTDIR)$(pkgdocdir) cp -dR ps $(DESTDIR)$(pkgdocdir) cp -dR pdf $(DESTDIR)$(pkgdocdir) + $(INSTALL_DIR) $(DESTDIR)$(mandir) + cp -dR man1 $(DESTDIR)$(mandir) + cp -dR man5 $(DESTDIR)$(mandir) [ ! -d html ] || cp -dR html $(DESTDIR)$(pkgdocdir) =20 pdf/%.pdf: ps/%.ps diff -urN xen-unstable.hg/docs/man/xmdomain.cfg.pod.5 xen-unstable.sean/doc= s/man/xmdomain.cfg.pod.5 --- xen-unstable.hg/docs/man/xmdomain.cfg.pod.5 1969-12-31 19:00:00.0000000= 00 -0500 +++ xen-unstable.sean/docs/man/xmdomain.cfg.pod.5 2005-07-31 22:24:53.00000= 0000 -0400 @@ -0,0 +1,87 @@ +=3Dhead1 NAME + +xmdomain.cfg - xm domain create config file format + +=3Dhead1 SYNOPSIS + + /etc/xen/myxendomain + /etc/xen/myxendomain2 + /etc/xen/auto/myxenautostarted + +=3Dhead1 DESCRIPTION + +The xm(1) program uses python executable config files to define +domains to create from scratch. Each of these config files needs to +contain a number of required options, and may specify many more. + +Domain configuration files live in /etc/xen by default, though the +full path to the config file must be specified in the I +command, so they can exist anywhere in the filesystem. + +/etc/xen/auto is a special case however, as domain config files in +that directory will be started automatically at system boot if the +xendomain init script is enabled. + +=3Dhead1 OPTIONS + +The following lists the most commonly used options for a domain config +file. =20 + +=3Dover 4 + +=3Ditem I + +The kernel image used in the domain. + +=3Ditem I + +The initial ramdisk to be used in the domain. Default xen domU +kernels do not usually need a ramdisk. + +=3Ditem I + +The amount of memory, in megabytes to allocate to the domain when it +starts. Allocating insufficient memory for a domain may produce +extremely bizarre behavior. + +=3Ditem I + +A unique name for the domain. You can not create 2 domains with the +same name. + +=3Ditem I + +Root stanza for the domain (required for Linux domains). + +=3Ditem I + +An array of disk stanzas=20 + +=3Dback + +A bare minimal config file example might be as follows: + + kernel =3D "/boot/vmlinuz-2.6-xenU" + memory =3D 128 + name =3D "MyLinux" =20 + root =3D "/dev/hda1 ro" + +=3Dhead1 ADDITIONAL OPTIONS + +=3Dover 4 + +=3Ditem I + +=3Dback + +=3Dhead1 SEE ALSO + +B(1) + +=3Dhead1 AUTHOR + + Sean Dague + +=3Dhead1 BUGS + +Not all options are currently documented diff -urN xen-unstable.hg/docs/man/xm.pod.1 xen-unstable.sean/docs/man/xm.p= od.1 --- xen-unstable.hg/docs/man/xm.pod.1 1969-12-31 19:00:00.000000000 -0500 +++ xen-unstable.sean/docs/man/xm.pod.1 2005-07-31 18:01:12.000000000 -0400 @@ -0,0 +1,5 @@ +=3Dhead1 NAME + +xm - Xen management user interface + + -Sean --=20 __________________________________________________________________ Sean Dague Mid-Hudson Valley sean at dague dot net Linux Users Group http://dague.net http://mhvlug.org There is no silver bullet. Plus, werewolves make better neighbors than zombies, and they tend to keep the vampire population down. __________________________________________________________________ --5/uDoXvLw7AC5HRs Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFC7ZIBSamXem9TdyYRAooWAJ9kQSAxMNcVMOgfZwvXijIPH4V9yQCgsK04 8LcYYTqQJJbRme+HFUq8Oho= =7D7i -----END PGP SIGNATURE----- --5/uDoXvLw7AC5HRs-- --===============0329477769== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0329477769==--