1 #!/bin/sh -e 2 # 3 # CDDL HEADER START 4 # 5 # The contents of this file are subject to the terms of the 6 # Common Development and Distribution License (the "License"). 7 # You may not use this file except in compliance with the License. 8 # 9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 # or http://www.opensolaris.org/os/licensing. 11 # See the License for the specific language governing permissions 12 # and limitations under the License. 13 # 14 # When distributing Covered Code, include this CDDL HEADER in each 15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 # If applicable, add the following below this CDDL HEADER, with the 17 # fields enclosed by brackets "[]" replaced with your own identifying 18 # information: Portions Copyright [yyyy] [name of copyright owner] 19 # 20 # CDDL HEADER END 21 # 22 # 23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24 # Use is subject to license terms. 25 # 26 # 27 #ident "@(#)install-sfw 1.2 09/08/21 SMI" 28 29 VERS=$1-$2 30 31 PREFIX=${ROOT}/usr 32 BINDIR=${PREFIX}/bin 33 SHAREDIR=${PREFIX}/share 34 INFODIR=${SHAREDIR}/info 35 MAN1DIR=${SHAREDIR}/man/man1 36 GNUPREFIX=${ROOT}/usr/gnu 37 GNUMAN1DIR=${GNUPREFIX}/share/man/man1 38 39 . ${SRC}/tools/install.subr 40 41 cd ${VERS} 42 43 # The gsed manpages are updated by Sun to include a comment, an 44 # ATTRIBUTES section with stability classification, and a NOTES 45 # section containing a pointer to the source package. We do this 46 # automatically at install time. If the package is revised, it is 47 # possible that additional changes may be required. This can be 48 # generally be done by updating the sunman-stability file. 49 50 MANSCRIPT=../../sunman-stability 51 52 cd doc 53 _install M sed.1 ${MAN1DIR}/gsed.1 444 54 _install L ../../../../share/man/man1/gsed.1 ${GNUMAN1DIR}/sed.1 55 makeinfo -I . -o sed.info sed.texi 56 _install N sed.info ${INFODIR}/sed.info 444 57 install-info --dir-file=${INFODIR}/dir ${INFODIR}/sed.info 58 chmod 644 ${INFODIR}/dir 59 60 cd ../sed 61 _install E sed ${BINDIR}/gsed 555 62 _install L ../../bin/gsed ${GNUPREFIX}/bin/sed 63 64 exit 0 65