components/emacs/tools/solman.pl
changeset 176 11a04b640bf2
equal deleted inserted replaced
175:5195b4ea17ad 176:11a04b640bf2
       
     1 #!/usr/bin/perl
       
     2 
       
     3 #
       
     4 # CDDL HEADER START
       
     5 #
       
     6 # The contents of this file are subject to the terms of the
       
     7 # Common Development and Distribution License (the "License").
       
     8 # You may not use this file except in compliance with the License.
       
     9 #
       
    10 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
    11 # or http://www.opensolaris.org/os/licensing.
       
    12 # See the License for the specific language governing permissions
       
    13 # and limitations under the License.
       
    14 #
       
    15 # When distributing Covered Code, include this CDDL HEADER in each
       
    16 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    17 # If applicable, add the following below this CDDL HEADER, with the
       
    18 # fields enclosed by brackets "[]" replaced with your own identifying
       
    19 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    20 #
       
    21 # CDDL HEADER END
       
    22 #
       
    23 #
       
    24 # Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
       
    25 #
       
    26 
       
    27 # Copy the manpage text on stdin to stdout, adding an Attribute
       
    28 # block to the end:
       
    29 #
       
    30 #	solman pkgname
       
    31 #
       
    32 # where pkgname is the name of the Solaris package to show.
       
    33 #
       
    34 
       
    35 die "usage: solman pkgname\n" 
       
    36     if (scalar(@ARGV) != 1);
       
    37 
       
    38 $pkgname = $ARGV[0];
       
    39 
       
    40 print <<TEXT;
       
    41 '\\" t\
       
    42 .\\"\
       
    43 .\\" Modified for Solaris to to add the Solaris stability classification,\
       
    44 .\\" and to add a note about source availability.\
       
    45 .\\"
       
    46 TEXT
       
    47 
       
    48 # Input to output, unmodified
       
    49 while ($line = <STDIN>) {
       
    50 	print $line;
       
    51 }
       
    52 
       
    53 print <<TEXT;
       
    54 .\\" Begin Solaris update\
       
    55 .SH ATTRIBUTES\
       
    56 See\
       
    57 .BR attributes (5)\
       
    58 for descriptions of the following attributes:\
       
    59 .sp\
       
    60 .TS\
       
    61 box;\
       
    62 cbp-1 | cbp-1\
       
    63 l | l .\
       
    64 ATTRIBUTE TYPE	ATTRIBUTE VALUE\
       
    65 =\
       
    66 Availability	$pkgname\
       
    67 =\
       
    68 Interface Stability	Uncommitted\
       
    69 .TE\
       
    70 .PP\
       
    71 .SH NOTES\
       
    72 Source for GNU emacs is available on http://opensolaris.org.\
       
    73 .\\" End Solaris update
       
    74 TEXT