Home | History | Annotate | Download | only in gdb
      1 #! /usr/bin/ksh93
      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 #ident	"@(#)install-sfw	1.8	09/10/05 SMI"
     30 
     31 # stop at first error
     32 set -o errexit
     33 
     34 PREFIX=${ROOT}/usr
     35 SFWPREFIX=${ROOT}/usr/sfw
     36 BINDIR=${PREFIX}/bin
     37 INFODIR=${PREFIX}/share/info
     38 LIBDIR=${PREFIX}/lib
     39 LOCALEDIR=${LIBDIR}/locale
     40 MAN1DIR=${PREFIX}/share/man/man1
     41 
     42 source ${SRC}/tools/install.subr
     43 
     44 # binaries
     45 
     46 if [ -z $INTEL_BLD ]; then
     47 	_install E ${PKGVERS}/gdb/gdb ${PREFIX}/bin/${MACH32}/gdb 555
     48 	_install E ${PKGVERS}/gdb/gdbtui ${PREFIX}/bin/${MACH32}/gdbtui 555
     49 	_install E ${PKGVERS64}/gdb/gdb ${PREFIX}/bin/${MACH64}/gdb 555
     50 	_install E ${PKGVERS64}/gdb/gdbtui ${PREFIX}/bin/${MACH64}/gdbtui 555
     51 	_install H ${LIBDIR}/isaexec ${BINDIR}/gdb
     52 	_install H ${LIBDIR}/isaexec ${BINDIR}/gdbtui
     53 else
     54 	_install E ${PKGVERS64}/gdb/gdb ${PREFIX}/bin/gdb 555
     55 	_install E ${PKGVERS64}/gdb/gdbtui ${PREFIX}/bin/gdbtui 555
     56 fi
     57 
     58 # create links from /usr/sfw to /usr
     59 _install L ../../bin/gdb ${SFWPREFIX}/bin/gdb
     60 _install L ../../bin/gdbtui ${SFWPREFIX}/bin/gdbtui
     61 
     62 
     63 # the remaining paths are identical between 32 and 64 builds.
     64 
     65 cd ${PKGVERS}
     66 
     67 # info files
     68 for i in `ls gdb/doc/*.info* `
     69 do
     70   _install N ${i} ${PREFIX}/share/info/`basename ${i}` 444
     71 done
     72 
     73 /usr/sfw/bin/install-info --dir-file=${INFODIR}/dir ${INFODIR}/gdb.info
     74 /usr/sfw/bin/install-info --dir-file=${INFODIR}/dir ${INFODIR}/gdbint.info
     75 /usr/sfw/bin/install-info --dir-file=${INFODIR}/dir ${INFODIR}/stabs.info
     76 /usr/sfw/bin/install-info --dir-file=${INFODIR}/dir ${INFODIR}/annotate.info
     77 
     78 #
     79 # The gdb manpages are updated by Sun to include a comment, an
     80 # ATTRIBUTES section with stability classification, and a NOTES 
     81 # section containing a pointer to the source package. We do this 
     82 # automatically at install time. If the package is revised, it is
     83 # possible that additional changes may be required.  This can be
     84 # generally be done by updating the sunman-stability file.
     85 
     86 MANSCRIPT=../sunman-stability
     87 
     88 _install M gdb/gdb.1 ${MAN1DIR}/gdb.1 444
     89 _install M gdb/gdb.1 ${MAN1DIR}/gdbtui.1 444
     90 
     91 cd ..
     92 
     93 exit 0
     94