From 33d983e8b6a2a50b31dc1f6bba95eb5184023916 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Tue, 11 Sep 2007 17:07:37 -0400 Subject: [PATCH] Fix a bug with default destdir Add a man page Move documentation into doc --- Changelog | 4 +++ README => doc/README | 0 doc/pungi.8 | 75 ++++++++++++++++++++++++++++++++++++++++++++ pungi | 2 +- 4 files changed, 80 insertions(+), 1 deletion(-) rename README => doc/README (100%) create mode 100644 doc/pungi.8 diff --git a/Changelog b/Changelog index 5cae9759..15844a51 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,7 @@ +* Tue Sep 11 2007 Jesse Keating +- Fix a bug with default dest dir (notting) +- Include a man page (dcantrell) + * Thu Aug 30 2007 Jesse Keating - Fix some bugs with source iso creation - Add source repo to kickstart file diff --git a/README b/doc/README similarity index 100% rename from README rename to doc/README diff --git a/doc/pungi.8 b/doc/pungi.8 new file mode 100644 index 00000000..7484912b --- /dev/null +++ b/doc/pungi.8 @@ -0,0 +1,75 @@ +.\" pungi - anaconda-based installation spin tool +.TH "pungi" "8" "Fedora Project" "Jesse Keating" "" +.SH "NAME" +pungi \- anaconda-based installation spin tool +.SH "SYNOPSIS" +\fBpungi\fP [options] +.SH "DESCRIPTION" +.PP +\fBpungi\fP is a tool to create anaconda-based installation trees or media images given a set of RPM packages. + +.SH "OPTIONS" +\fBpungi\fP is entirely command line oriented. All input to the program is given by command line options\&. +.PP +.IP "\fB\-h, \-\-help\fP" +Display a help message and then quit\&. +.IP "\fB\-\-version\fP" +Display program's version number and then quit\&. +.IP "\fB\-\-name=string\fP" +Set the name for your distribution (defaults to "Fedora")\&. +.IP "\fB\-\-ver=string\fP" +Set the version for your distribution (defaults to datestamp)\&. +.IP "\fB\-\-flavor=string\fP" +Set the flavor of your spin (optional)\&. +.IP "\fB\-\-destdir=pathspec\fP" +Path specifying the destination directory (defaults to current directory)\&. +.IP "\fB\-\-cachedir=pathspec\fP" +Package cache directory (defaults to /var/cache/pungi)\&. +.IP "\fB\-\-bugurl=urlspec\fP" +The URL for your bug reporting system (defaults to http://bugzilla.redhat.com)\&. +.IP "\fB\-\-discs=integer\fP" +The number of discs you want to create (defaults to 1)\&. +.IP "\fB\-\-nosource\fP" +Disable gathering of source packages (optional)\&. +.IP "\fB\-\-sourceisos\fP" +Create the source media images (other arch runs must be done)\&. +.IP "\fB\-c ksfile, \-\-config=ksfile\fP" +Path to kickstart configuration file\&. +.IP "\fB\-\-all\-stages\fP" +Enable ALL stages\&. +.IP "\fB\-G\fP" +Enable the Gather stage\&. +.IP "\fB\-C\fP" +Enable the Createrepo stage\&. +.IP "\fB\-B\fP" +Enable the BuildInstall stage\&. +.IP "\fB\-P\fP" +Enable the Package Order stage\&. +.IP "\fB\-S\fP" +Enable the SplitTree stage\&. +.IP "\fB\-T\fP" +Enable the CreateISO stage\&. + +.PP +.SH "EXAMPLES" +.nf +pungi -c /usr/share/pungi/f8-fedora.ks --destdir=/data/Fedora8 --name Fedora --ver 8 +.fi + +.PP +.SH "SEE ALSO" +.nf +http://fedoraproject.org/wiki/Releases/FeatureUsePungi +https://hosted.fedoraproject.org/projects/pungi/ +.fi + +.PP +.SH "AUTHORS" +.nf +See the Authors file included with this program. +.fi + +.PP +.SH "BUGS" +No bugs were harmed in the making of this software. +.fi diff --git a/pungi b/pungi index f263dc0c..49445a02 100755 --- a/pungi +++ b/pungi @@ -164,7 +164,7 @@ if __name__ == '__main__': help='the version of your distribution (defaults to datestamp)') parser.add_option("--flavor", default="", dest="flavor", help='the flavor of your distribution spin (optional)') - parser.add_option("--destdir", default=".", dest="destdir", + parser.add_option("--destdir", default=os.getcwd(), dest="destdir", help='destination directory (defaults to current directory)') parser.add_option("--cachedir", default="/var/cache/pungi", dest="cachedir", help='package cache directory (defaults to /var/cache/pungi)')