Reformat manpage.

This commit is contained in:
Stefano Rivera 2011-04-24 16:36:59 +02:00
parent 7218468e18
commit 3f06a00904
2 changed files with 63 additions and 52 deletions

1
debian/changelog vendored
View File

@ -5,6 +5,7 @@ ubuntu-dev-tools (0.123) UNRELEASED; urgency=low
- Move package installation after option parsing. - Move package installation after option parsing.
- Exit 0 when showing help, and support -h. - Exit 0 when showing help, and support -h.
- Determine distribution from release name (via distro-info). - Determine distribution from release name (via distro-info).
- Reformat manpage.
-- Stefano Rivera <stefanor@debian.org> Sun, 24 Apr 2011 12:45:31 +0200 -- Stefano Rivera <stefanor@debian.org> Sun, 24 Apr 2011 12:45:31 +0200

View File

@ -12,50 +12,54 @@ mk\-sbuild \- creates chroots via schroot and sbuild
.SH OPTIONS .SH OPTIONS
Listed below are the command line options for mk\-sbuild: Listed below are the command line options for mk\-sbuild:
.TP .TP
.B \-\-arch=ARCH .B \-\-arch\fR=\fIARCH
What architecture to select (defaults to the native architecture). What architecture to select (defaults to the native architecture).
.TP .TP
.B \-\-name=NAME .B \-\-name\fR=\fINAME
Base name for the schroot (arch is appended). Base name for the schroot (arch is appended).
.TP .TP
.B \-\-personality=PERSONALITY .B \-\-personality\fR=\fIPERSONALITY
What personality to use (defaults to match \-\-arch). What personality to use (defaults to match \fB\-\-arch\fR).
.TP .TP
.B \-\-debug .B \-\-debug
Turn on script debugging. Turn on script debugging.
.TP .TP
.B \-\-skip\-updates .B \-\-skip\-updates
Do not include the \-updates pocket in the installed sources.list. Do not include the \fB\-updates\fR pocket in the installed
\fBsources.list\fR.
.TP .TP
.B \-\-source\-template=FILE .B \-\-source\-template\fR=\fIFILE
Use FILE as the sources.list template (defaults to $HOME/.mk\-sbuild.sources). Use \fIFILE\fR as the \fBsources.list\fR template (defaults to
\fI$HOME\fB/.mk\-sbuild.sources\fR).
.TP .TP
.B \-\-debootstrap\-mirror=URL .B \-\-debootstrap\-mirror\fR=\fIURL
Use URL as the debootstrap source (defaults to http://ports.ubuntu.com for lpia, Use \fIURL\fR as the debootstrap source (defaults to
official Ubuntu repositories for the supported architectures). \fBhttp://ports.ubuntu.com\fR where appropriate, official Ubuntu
repositories for the supported architectures).
.TP .TP
.B \-\-debootstrap\-include=alpha,beta .B \-\-debootstrap\-include\fR=\fIalpha,beta
Pass along a comma separated list of packages to debootstrap's \-\-include Pass along a comma separated list of packages to debootstrap's
argument. See debootstrap (8) for more details. \fB\-\-include\fR argument. See \fBdebootstrap\fR (8) for more details.
.TP .TP
.B \-\-debootstrap\-exclude=alpha,beta .B \-\-debootstrap\-exclude\fR=\fIalpha,beta
Pass along a comma separated list of packages to debootstrap's \-\-exclude Pass along a comma separated list of packages to debootstrap's
argument. WARNING: be careful using this option as you can end up \fB\-\-exclude\fR argument.
excluding essential package. See debootstrap (8) for more details. \fBWARNING:\fR be careful using this option as you can end up
excluding essential package. See \fBdebootstrap \fR(8) for more details.
.TP .TP
.B \-\-distro=DISTRO .B \-\-distro\fR=\fIDISTRO
Enable distro-specific logic. Enable distro-specific logic.
When not provided, the distribution is determined from \fIrelease\fR. When not provided, the distribution is determined from \fIrelease\fR.
Currently known distros: "\fBdebian\fR" and "\fBubuntu\fR". Currently known distros: "\fBdebian\fR" and "\fBubuntu\fR".
.TP .TP
.B \-\-vg=VOLUME_GROUP .B \-\-vg\fR=\fIVOLUME_GROUP
Specify a volume group, and subsequently use a default SCHROOT_TYPE of Specify a volume group, and subsequently use a default \fBSCHROOT_TYPE\fR of
"lvm-snapshot" rather than "directory" (via aufs) mounts. "\fBlvm-snapshot\fR" rather than "\fBdirectory\fR" (via aufs) mounts.
.TP .TP
.B \-\-type=SHROOT_TYPE .B \-\-type\fR=\fISHROOT_TYPE
Specify a SCHROOT_TYPE. Supported values are "directory" (default if Specify a \fBSCHROOT_TYPE\fR. Supported values are "\fBdirectory\fR"
\-\-vg not specified), "lvm-snapshot" (default if \-\-vg specified), (default if \fB\-\-vg\fR not specified), "\fBlvm-snapshot\fR" (default
"btrfs-snapshot", and "file". if \fB\-\-vg\fR specified), "\fBbtrfs-snapshot\fR", and "\fBfile\fR".
.SH ENVIRONMENT VARIABLES .SH ENVIRONMENT VARIABLES
.TP .TP
@ -69,61 +73,67 @@ Size of snapshot LVs (defaults to 4G).
Lines to append to schroot entries. Lines to append to schroot entries.
.TP .TP
.B SKIP_UPDATES .B SKIP_UPDATES
Do not include the \-updates pocket in the installed sources.list. Do not include the \fB\-updates\fR pocket (same as
\fB\-\-skip\-updates\fR)
.TP .TP
.B DEBOOTSTRAP_MIRROR .B DEBOOTSTRAP_MIRROR
Mirror location (same as \-\-debootstrap-mirror) Mirror location (same as \fB\-\-debootstrap-mirror\fR)
.TP .TP
.B DEBOOTSTRAP_INCLUDE .B DEBOOTSTRAP_INCLUDE
Comma separated list of packages to include when bootstrapping (same as \-\-debootstrap-include) Comma separated list of packages to include when bootstrapping (same as
\fB\-\-debootstrap-include\fR)
.TP .TP
.B DEBOOTSTRAP_EXCLUDE .B DEBOOTSTRAP_EXCLUDE
Comma separated list of packages to exclude when bootstrapping (same as \-\-debootstrap-exclude; see warning above) Comma separated list of packages to exclude when bootstrapping (same as
\fB\-\-debootstrap-exclude\fR; see warning above)
.TP .TP
.B SOURCE_CHROOTS_DIR .B SOURCE_CHROOTS_DIR
use SOURCE_CHROOTS_DIR as home of schroot source directories. (default Use \fBSOURCE_CHROOTS_DIR\fR as home of schroot source directories.
/var/lib/schroot/chroots) (default \fB/var/lib/schroot/chroots\fR)
.TP .TP
.B SOURCE_CHROOTS_TGZ .B SOURCE_CHROOTS_TGZ
use SOURCE_CHROOTS_TGZ as home of schroot source tarballs. (default Use \fBSOURCE_CHROOTS_TGZ\fR as home of schroot source tarballs.
/var/lib/schroot/tarballs) (default \fB/var/lib/schroot/tarballs\fR)
.TP .TP
.B CHROOT_SNAPSHOT_DIR .B CHROOT_SNAPSHOT_DIR
use CHROOT_SNAPSHOT_DIR as home of mounted btrfs snapshots (default Use \fBCHROOT_SNAPSHOT_DIR\fR as home of mounted btrfs snapshots.
/var/lib/schroot/snapshots) (default \fB/var/lib/schroot/snapshots\fR)
.SH FILES .SH FILES
.TP .TP
.B $HOME/.mk\-sbuild.rc .IB $HOME /.mk\-sbuild.rc
Sourced for environment variables (defined above). Sourced for environment variables (defined above).
.TP .TP
.B $HOME/.mk\-sbuild.sources[.$DISTRO] .IB $HOME /.mk\-sbuild.sources\fR[\fB. $DISTRO\fR]
Can contain a customized sources.list. Can contain a customized \fBsources.list\fR.
It will be read when creating the schroot. It will be read when creating the schroot.
If a file with ".ubuntu" or ".debian" is found (based on the \-\-distro If a file with "\fB.ubuntu\fR" or "\fB.debian\fR" is found (as
argument) that file will use used instead. appropriate) it will use used instead.
See sources.list(5) for more details on the format. See \fBsources.list\fR (5) for more details on the format.
.TP .TP
.B $HOME/.mk\-sbuild.schroot.conf[.$SCHROOT_TYPE] .IB $HOME /.mk\-sbuild.schroot.conf\fR[\fB. $SCHROOT_TYPE\fR]
Can contain a customized configuration section to be inserted into Can contain a customized configuration section to be inserted into
/etc/schroot/schroot.conf. \fB/etc/schroot/schroot.conf\fR.
If a file with ".lvm-snapshot", ".directory", or ".file" is found (based on the If a file with "\fB.lvm-snapshot\fR", "\fB.directory\fR", "\fB.file\fR",
values of the \-\-vg and \-\-type arguments) that file will use used instead. or "\fBbtrf-snapshot\fR" is found (as appropriate) that file will use used instead.
See schroot.conf(5) for more details on the format. See \fBschroot.conf\fR (5) for more details on the format.
.SH USING THE CHROOTS .SH USING THE CHROOTS
.TP .TP
To CHANGE the golden image: \fBsudo schroot \-c ${CHROOT_NAME}\-source \-u root\fR To CHANGE the golden image: \fBsudo schroot \-c \fI${SCHROOT_NAME}\fB\-source \-u root\fR
.TP .TP
To ENTER an image snapshot: \fBschroot \-c ${CHROOT_NAME}\fR To ENTER an image snapshot: \fBschroot \-c \fI$SCHROOT_NAME\fR
.TP .TP
To BUILD within a snapshot: \fBsbuild \-A \-d ${SCHROOT_NAME} PACKAGE*.dsc\fR To BUILD within a snapshot: \fBsbuild \-A \-d \fI$SCHROOT_NAME $PACKAGE\fB*.dsc\fR
.TP .TP
for example, to update the packages in a golden image: \fBschroot \-c ${CHROOT_NAME}\-source \-u root -- sh \-c "apt-get \-qq update && apt-get \-qy upgrade && apt-get clean" </dev/null\fR for example, to update the packages in a \fBsid\-amd64\fR golden image:
\fBschroot \-c sid\-amd64\-source \-u root -- sh \-c "apt-get \-qq update && apt-get \-qy upgrade && apt-get clean" </dev/null\fR
.SH SEE ALSO .SH SEE ALSO
sbuild\-setup (7), sources.list (5), schroot.conf (5), .BR sbuild\-setup (7),
https://help.ubuntu.com/community/SbuildLVMHowto .BR sources.list (5),
.BR schroot.conf (5),
.B https://help.ubuntu.com/community/SbuildLVMHowto
.SH AUTHOR .SH AUTHOR
\fBmk\-sbuild\fR was written by Kees Cook <kees@ubuntu.com>. \fBmk\-sbuild\fR was written by Kees Cook <kees@ubuntu.com>.