usr/src/cmd/freeipmi/install-sfw
changeset 10 612517e396e0
parent 0 b34509ac961f
child 14 ebdd963f7d5e
equal deleted inserted replaced
9:502b128296a2 10:612517e396e0
    19 #
    19 #
    20 # CDDL HEADER END
    20 # CDDL HEADER END
    21 #
    21 #
    22 
    22 
    23 #
    23 #
    24 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
    24 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
    25 # Use is subject to license terms.
    25 # Use is subject to license terms.
    26 #
    26 #
    27 #	ident	"@(#)install-sfw	1.1	09/08/14 SMI"
    27 #	ident	"@(#)install-sfw	1.2	10/03/10 SMI"
    28 #
    28 #
    29 
    29 
    30 # stop at first error
    30 # stop at first error
    31 set -o errexit
    31 set -o errexit
    32 
    32 
    55 		do
    55 		do
    56 			_install M ${MANPAGE} ${MANPAGE}.tmp 444
    56 			_install M ${MANPAGE} ${MANPAGE}.tmp 444
    57 			mv -f ${MANPAGE}.tmp ${MANPAGE}
    57 			mv -f ${MANPAGE}.tmp ${MANPAGE}
    58 			if [ x`echo ${MANPAGE} | grep 5$` != x ] && [ -f ${MANPAGE} ]; then
    58 			if [ x`echo ${MANPAGE} | grep 5$` != x ] && [ -f ${MANPAGE} ]; then
    59 				NEWMANPAGE=`echo ${MANPAGE} | sed -e 's/\.5$/\.4/'`
    59 				NEWMANPAGE=`echo ${MANPAGE} | sed -e 's/\.5$/\.4/'`
    60 				mv -f ${MANPAGE} ${NEWMANPAGE}
    60 				sed \
       
    61 				    -e 's,^\.so man5/freeipmi.conf.5,\.so man4/freeipmi.conf.4,' \
       
    62 				    -e 's,^\.so man5/ipmimonitoring.conf.5,\.so man4/ipmimonitoring.conf.4,' \
       
    63 				    -e 's,^\.so man5/ipmi_monitoring_sensors.conf.5,\.so man4/ipmi_monitoring_sensors.conf.4,' \
       
    64 				    < ${MANPAGE} \
       
    65 				    > ${NEWMANPAGE}
    61 				mv -f ${NEWMANPAGE} ${MAN4DIR}
    66 				mv -f ${NEWMANPAGE} ${MAN4DIR}
    62 			fi
    67 			fi
    63 			if [ x`echo ${MANPAGE} | grep 7$` != x ] && [ -f ${MANPAGE} ]; then
    68 			if [ x`echo ${MANPAGE} | grep 7$` != x ] && [ -f ${MANPAGE} ]; then
    64                                 NEWMANPAGE=`echo ${MANPAGE} | sed -e 's/\.7$/\.5/'`
    69                                 NEWMANPAGE=`echo ${MANPAGE} | sed -e 's/\.7$/\.5/'`
    65                                 mv -f ${MANPAGE} ${NEWMANPAGE}
    70                                 mv -f ${MANPAGE} ${NEWMANPAGE}