Home | History | Annotate | Download | only in gpatch
      1 #!/bin/sh
      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 2007 Sun Microsystems, Inc.  All rights reserved.
     24 # Use is subject to license terms.
     25 #
     26 #ident	"@(#)install-gpatch	1.8	07/08/23 SMI"
     27 
     28 VERS=patch-2.5.9
     29 
     30 PREFIX=${ROOT}/usr
     31 BINDIR=${PREFIX}/bin
     32 SHAREDIR=${PREFIX}/share
     33 MAN1DIR=${SHAREDIR}/man/man1
     34 GNUPREFIX=${ROOT}/usr/gnu
     35 GNUMAN1DIR=${GNUPREFIX}/share/man/man1
     36 
     37 . ${SRC}/tools/install.subr
     38 
     39 cd ${VERS}
     40 
     41 _install E patch ${BINDIR}/gpatch 555
     42 _install L ../../bin/gpatch ${GNUPREFIX}/bin/patch
     43 
     44 MANSCRIPT=../sunman-stability
     45 
     46 _install M patch.man ${MAN1DIR}/gpatch.1 444
     47 _install L ../../../../share/man/man1/gpatch.1 ${GNUMAN1DIR}/patch.1
     48 
     49 exit 0
     50