Home | History | Annotate | Download | only in gm4
      1 #! /usr/bin/bash
      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 #
     24 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
     25 # Use is subject to license terms.
     26 #
     27 
     28 #
     29 # install objects in the proto area, since it would
     30 # really like to install locally, but that doesn't scale.
     31 #
     32 #ident	"@(#)install-gm4	1.9	09/03/19 SMI"
     33 
     34 set -o errexit
     35 
     36 PKGVERS=${1}
     37 PREFIX=${ROOT}/usr
     38 SFWPREFIX=${ROOT}/usr/sfw
     39 GNUPREFIX=${ROOT}/usr/gnu
     40 BINDIR=${PREFIX}/bin
     41 SHAREDIR=${PREFIX}/share
     42 INFODIR=${PREFIX}/share/info
     43 LIBDIR=${PREFIX}/lib
     44 LOCALEDIR=${LIBDIR}/locale
     45 MAN1DIR=${SHAREDIR}/man/man1
     46 
     47 MANSCRIPT=../sunman-stability
     48 
     49 source ${SRC}/tools/install.subr
     50 
     51 cd ${PKGVERS}
     52 
     53 _install N doc/m4.info ${INFODIR}/m4.info 444
     54 _install N doc/m4.info-1 ${INFODIR}/m4.info-1 444
     55 _install N doc/m4.info-2 ${INFODIR}/m4.info-2 444
     56 _install E src/m4 ${GNUPREFIX}/bin/m4 555
     57 _install L ../gnu/bin/m4  ${PREFIX}/bin/gm4
     58 _install L ../../gnu/bin/m4  ${SFWPREFIX}/bin/gm4
     59 _install M doc/m4.1 ${GNUPREFIX}/share/man/man1/m4.1 444
     60 _install L ../../../gnu/share/man/man1/m4.1  ${PREFIX}/share/man/man1/gm4.1
     61 
     62 /usr/sfw/bin/install-info --dir-file=${INFODIR}/dir ${INFODIR}/m4.info
     63 
     64 exit 0
     65