Home | History | Annotate | Download | only in gmake
      1 #!/bin/ksh -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 # install objects in the proto area, since it would
     27 # really like to install locally, but that doesn't scale.
     28 #
     29 #ident	"@(#)install-sfw	1.9	09/09/21 SMI"
     30 
     31 VERS=3.81
     32 PKGVERS=make-${VERS}
     33 PREFIX=${ROOT}/usr
     34 BINDIR=${PREFIX}/bin
     35 INFODIR=${PREFIX}/share/info
     36 LIBDIR=${PREFIX}/lib
     37 LOCALEDIR=${PREFIX}/share/locale
     38 MAN1DIR=${PREFIX}/share/man/man1
     39 SFWPREFIX=${ROOT}/usr/sfw
     40 GNUPREFIX=${ROOT}/usr/gnu
     41 SFWMAN1DIR=${SFWPREFIX}/share/man/man1
     42 GNUMAN1DIR=${GNUPREFIX}/share/man/man1
     43 
     44 . ${SRC}/tools/install.subr
     45 
     46 cd ${PKGVERS}
     47 
     48 for i in doc/make.info*
     49 do
     50 	_install N ${i} ${PREFIX}/share/info/`basename ${i}` 444
     51 done
     52 
     53 _install E make ${BINDIR}/gmake 555
     54 _install L ../../bin/gmake ${SFWPREFIX}/bin/gmake
     55 _install L ../../bin/gmake ${GNUPREFIX}/bin/make
     56 
     57 #
     58 # Install the locale source
     59 #
     60 cd po
     61 for i in `ls *.gmo | cut -d'.' -f1`
     62 do
     63   _install N ${i}.gmo ${LOCALEDIR}/${i}/LC_MESSAGES/make.mo 644
     64 done
     65 cd ..
     66 
     67 /usr/sfw/bin/install-info --dir-file=${INFODIR}/dir ${INFODIR}/make.info
     68 
     69 #
     70 # The gmake manpages are updated by Sun to include a comment, an
     71 # ATTRIBUTES section with stability classification, and a NOTES 
     72 # section containing a pointer to the source package. We do this 
     73 # automatically at install time. If the package is revised, it is
     74 # possible that additional changes may be required.  This can be
     75 # generally be done by updating the sunman-stability file.
     76 
     77 MANSCRIPT=../sunman-stability
     78 
     79 _install M make.1 ${MAN1DIR}/gmake.1 444
     80 _install L ../../../../share/man/man1/gmake.1 ${GNUMAN1DIR}/make.1
     81 _install L ../../../../share/man/man1/gmake.1 ${SFWMAN1DIR}/gmake.1
     82 
     83 exit 0
     84