Index: ossp-pkg/platform/platform.pod RCS File: /v/ossp/cvs/ossp-pkg/platform/platform.pod,v rcsdiff -q -kk '-r1.1' '-r1.2' -u '/v/ossp/cvs/ossp-pkg/platform/platform.pod,v' 2>/dev/null --- platform.pod 2003/09/08 11:16:13 1.1 +++ platform.pod 2003/09/08 11:47:05 1.2 @@ -32,11 +32,109 @@ =head1 SYNOPSIS -... +B +[B<-F>|B<--format> I] +[B<-S>|B<--sep> I] +[B<-C>|B<--conc> I] +[B<-L>|B<--lower>] +[B<-U>|B<--upper>] +[B<-T>|B<--type> I] +[B<-v>|B<--verbose>] +[B<-c>|B<--concise>] +[B<-n>|B<--newline>] +[B<-d>|B<--debug>] + +B +[B<-V>|B<--version>] + +B +[B<-h>|B<--help>] =head1 DESCRIPTION -... +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}>". + +=head1 OPTIONS + +The following command line options are available. + +=over 4 + +=item B<-F>, B<--format> I + + %[ac] verbose hardware architecture class + %[ap] verbose hardware architecture product + %[at] verbose hardware architecture technology + %[sc] verbose operating system class + %[sp] verbose operating system product + %[st] verbose operating system technology + %{ac} regular hardware architecture class + %{ap} regular hardware architecture product + %{at} regular hardware architecture technology + %{sc} regular operating system class + %{sp} regular operating system product + %{st} regular operating system technology + % concise hardware architecture class + % concise hardware architecture product + % concise hardware architecture technology + % concise operating system class + % concise operating system product + % concise operating system technology + +=item B<-S>, B<--sep> I + +=item B<-C>, B<--conc> I + +=item B<-L>, B<--lower> + +=item B<-U>, B<--upper> + +=item B<-T>, B<--type> I + +=item B<-v>, B<--verbose> + +=item B<-c>, B<--concise> + +=item B<-n>, B<--newline> + +=item B<-d>, B<--debug> + +=item B<-V>, B<--version> + +=item B<-h>, B<--help> + +=back + +=head1 EXAMPLES + +The following real-life use cases are known: + +=over 4 + +=item B build-time decisions + + platform -c -L -S "" -C "+" -F "%at-%st" + platform -c -L -S "" -C "+" -F "%ac-%sc" + +=item B binary RPM packages + + platform -c -L -S "" -C "+" -F "%ap-%sp" + +=item F files + + platform -v -F "%sp (%ap)" + platform -v -F "%sc (%ac)" + +=back =head1 SEE ALSO @@ -53,6 +151,13 @@ Unix platforms packages are maintained for. It was inspired by B F and older 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 +combined with verbose, regular and consise outputs). The drawback of +B is that it (still) knows less particular platforms. + =head1 AUTHOR Ralf S. Engelschall