Index: ossp-pkg/platform/platform.pod RCS File: /v/ossp/cvs/ossp-pkg/platform/platform.pod,v rcsdiff -q -kk '-r1.4' '-r1.5' -u '/v/ossp/cvs/ossp-pkg/platform/platform.pod,v' 2>/dev/null --- platform.pod 2003/09/29 12:53:15 1.4 +++ platform.pod 2003/10/26 11:34:44 1.5 @@ -59,13 +59,16 @@ B is a flexible Unix platform identification program. It distinguishes a platform according to its I and I. For both there is a I, I and -I identification. For all of those six identifications, -there is a I, I and I version. This leads to -eithteen (2x3x3) available identification strings for each platform, -from which usually 2 are choosen in a particular situation. This is -done by assembling the platform identification string using a I -string containing one or more identification constructs of the forms -"C<%xx>", "C<%ExxE>". "C<%[xx]>", and "C<%{xx}>". +I identification. For each of those six identifications, +there is a I, I and I version. + +This leads to eithteen (2x3x3) available identification strings for each +platform, from which usually 2 are choosen in a particular situation. +This is done by assembling the platform identification string using a +I string containing one or more identification constructs of the +forms "C<%[xx]>" (verbose), "C<%{xx}>" (regular) and "C<%ExxE>" +(concise). + =head1 OPTIONS @@ -86,18 +89,23 @@ %[ac] verbose hardware architecture class %{ac} regular hardware architecture class % concise hardware architecture class + %[ap] verbose hardware architecture product %{ap} regular hardware architecture product % concise hardware architecture product + %[at] verbose hardware architecture technology %{at} regular hardware architecture technology % concise hardware architecture technology + %[sc] verbose operating system class %{sc} regular operating system class % concise operating system class + %[sp] verbose operating system product %{sp} regular operating system product % concise operating system product + %[st] verbose operating system technology %{st} regular operating system technology % concise operating system technology @@ -145,13 +153,58 @@ =item B<-t>, B<--type> I This option is a meta option which internally sets options B<-F>, B<-S>, -B<-C>, B<-L>, B<-U>, B<-v> or B<-c> according to I. It can be -used to easily specify various commonly known outputs. The following -Is are available: "C" for binary package id (OpenPKG -RPM), "C" for build time checking (OpenPKG RPM), "C for GNU -F style id "C" for non-whitespace HTTP Server-header -id, "C" for human readable verbose summary information, and -"C" for an all-in-one full-table information. +B<-C>, B<-L>, B<-U>, B<-v> or B<-c> according to I. It can be used +to easily specify various commonly known outputs. The following Is +are available: + +=over 4 + +=item B + +Binary Package Id (OpenPKG RPM). +This is equal to "C<-F '%-%' -L -S '' -C '+'>" +and results in outputs like "C" and "C". + +=item B + +Build-Time Checking (OpenPKG RPM). +This is equal to "C<-F '%-%' -L -S '' -C '+'>" +and results in outputs like "C" and "C". + +=item B + +GNU F Style Id. +This is similar to B and is equal to "C<-F '"%-unknown-%' -L -S '' -C '+'>" +and results in outputs like "C" and "C". + +=item B + +HTTP Server Header Id. +This is equal to "C<-F '"%-%' -S '/' -C '+'>" +and results in outputs like "C" and "C". + +=item B + +Human Readable Verbose Summary Information. This is equal to "C<-F +'Class: %[sc] (%[ac])\nProduct: %[sp] (%[ap])\nTechnology: %[st] +(%[at])' -S ' ' -C '/'>" and results in outputs like: + + Class: 4.4BSD (iX86) + Product: FreeBSD 4.9-RC (iX86) + Technology: FreeBSD 4.9-RC (i686) + +and + + Class: LSB (iX86) + Product: Debian GNU/Linux 3.0 (iX86) + Technology: GNU/Linux 2.2/2.4 (i686) + +=item B + +All-In-One Full-Table Information. This just outputs really +all 2x2x3 identification strings as a table. + +=back =item B<-d>, B<--debug> @@ -197,7 +250,8 @@ B currently knows the following particular Unix platforms in detail: FreeBSD, NetBSD, OpenBSD, Linux, Sun Solaris, SCO UnixWare, -QNX Neutrino, SGI IRIX, HP HP-UX, HP Tru64, IBM AIX. +QNX Neutrino, SGI IRIX, HP HP-UX, HP Tru64, IBM AIX and Apple MacOS X +Darwin. All other Unix platforms are recognized through generic uname(1) information and so usually can be identified sufficiently, although the @@ -215,15 +269,17 @@ Engelschall> for use in the B and B projects. It was prompted by the need in B to have both product (for RPM filenames) and technology (for build-time decisions) identifiers for the -Unix platforms packages are maintained for. It was inspired by B -F and older B F command. +Unix platforms, OpenPKG packages are maintained for. It was inspired by +the B F and the old B F command. The major difference to B F is that B does not use a I identification (cannot be determined most of -the time and is not used at all in all projects I've ever seen), is -a lot more flexible (class, product and technology identifications +the time and is not used at all in all projects I've ever seen) and +is a lot more flexible (class, product and technology identifications combined with verbose, regular and consise outputs). The drawback of -B is that it (still) knows less particular platforms. +B is that it (still) knows less particular platforms, +although the generic platform identification is sufficient enough most +of the time. =head1 AUTHOR