components/openssh/files/convert-man
branchs11u3-sru
changeset 7320 edeb951aa980
equal deleted inserted replaced
7319:0753ecc76d4d 7320:edeb951aa980
       
     1 #!/bin/sh
       
     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 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 
       
    26 # Each time upstream puts in new features, man pages change, and more
       
    27 # additional changes of our own go into man page patches.  This causes patch to
       
    28 # fail, requiring it to be re-hand-created.   This program will  fix the
       
    29 # man page section numbers at gmake prep time, after all other changes
       
    30 # and patches are applied.
       
    31 
       
    32 export SOURCE_DIR
       
    33 SOURCE_DIR=$1
       
    34 shift
       
    35 
       
    36 #set -x
       
    37 #echo $1
       
    38 
       
    39 for i in $* ; do
       
    40 	echo $SOURCE_DIR/$i
       
    41 	cat $SOURCE_DIR/$i | \
       
    42 	sed '
       
    43 	s/ssh_config 5/ssh_config 4/g
       
    44 	s/moduli 5/moduli 4/g
       
    45 	s/sshd_config 5/sshd_config 4/g
       
    46 	s/ssh-keysign 8/ssh-keysign 1M/g
       
    47 	s/sftp-server 8/sftp-server 1M/g
       
    48 	s/ssh-pkcs11-helper 8/ssh-pkcs11-helper 1M/g
       
    49 	s/sshd 8/sshd 1M/g'   > /tmp/$i.sed
       
    50 	cp /tmp/$i.sed $SOURCE_DIR/$i
       
    51 	rm /tmp/$i.sed 
       
    52 done
       
    53