-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmakeman.py
147 lines (142 loc) · 4.31 KB
/
makeman.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# $Progeny$
#
# Copyright 2006 Progeny Linux Systems, Inc.
#
# This file is part of PDK.
#
# PDK is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PDK is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU General Public License
# along with PDK; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
import sys
import optparse
from pdk.pdk_commands import commands
print r'''.\"This file was generated by PDK's makeman.py script.
.\" Copyright 2005 Progeny Linux Systems, Inc.
.\"
.\" This file is part of PDK.
.\"
.\" PDK is free software; you can redistribute it and/or modify it
.\" under the terms of the GNU General Public License as published by
.\" the Free Software Foundation; either version 2 of the License, or
.\" (at your option) any later version.
.\"
.\" PDK is distributed in the hope that it will be useful, but WITHOUT
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
.\" or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
.\" License for more details.
.\"
.\" You should have received a copy of the GNU General Public License
.\" along with PDK; if not, write to the Free Software Foundation,
.\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
.de URL
\\$2 \(laURL: \\$1 \(ra\\$3
..
.if \n[.g] .mso www.tmac
.TH pdk "1" "2006" "pdk"
.SH "NAME"
pdk \- Componentized Linux Platform Development Kit (PDK)
.SH "SYNOPSIS"
.PP
.B "pdk"
.I "subcommand"
[
.I "subcommand" ...
] [
.I options
]
.I arguments
.SH "DESCRIPTION"
.PP
Simply put,
Componentized Linux is a platform
for building specialized Linux distributions.
Componentized Linux provides developers
with a set of reusable building blocks,
called components,
which can be easily assembled into a wide variety
of configurations and customized as necessary.
It combines this componentized platform
with a set of technologies
(covering installation, software management,
and hardware detection, with more on the way)
that span traditional distribution boundaries
and transform the assembled components
into a complete distribution.
.PP
This package contains
the Componentized Linux Platform Development Kit (PDK).
Essentially, you can think of the PDK as \(lqversion control
for distributions\(rq\(emit's intended to be
a full suite of tools
for building and maintaining a CL-based distribution,
from assembling a full distro
from a set of pre-built components
to managing the evolution of the distro over time
to incorporate upstream changes
to building your own custom components
to specifying global configuration like branding
to integrating distro-specific patches
and managing the changes over time.
.PP
.SH "COMMAND LIST"'''
def iter_help_lines(help_string):
help_lines = iter(help_string.splitlines())
for help_line in help_lines:
yield help_line.strip()
if help_line.strip() == 'options:':
break
for help_line in help_lines:
yield help_line.rstrip()
for command_segments, command in commands:
print '.SS'
print '.B'
print ' '.join(command_segments)
spec = command.get_spec()
spec.set_command_name(command_segments)
print spec.format_help()
print r'''.SH "EXAMPLES"
Here is how you set up a new pdk workspace and pull a purchased product
from Progeny.
.RS
.PP
.BI "pdk workspace create " directory
.br
.BI "cd " directory
.PP
.B cat >etc/channels.xml <<EOF
.br
.B <channels>
.br
.I See documenation included with your
.I Componentized Linux product
.I for contents of \\fBetc/channels.xml\\fP.
.br
.B </channels>
.br
.B EOF
.PP
.BI "pdk pull " "Componenized Linux product"
.RE
.SH "AUTHOR"
Written by the friendly neighborhood engineers at Progeny.
.PP
.URL "http://www.progeny.com/" "Progeny"
.SH "REPORTING BUGS"
Report bugs to [email protected].
.PP
.ad l
See the
.URL "http://lists.progeny.com/listinfo/cl-workers" "CL Workers Mailing List"
for more information.
.ad b'''
# vim:set ai et sw=4 ts=4 tw=75: