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 #ident "@(#)install-sfw 1.3 09/09/23 SMI" 27 28 VERS=$1-$2 29 30 PREFIX=${ROOT}/usr 31 GNUPREFIX=${ROOT}/usr/gnu 32 BINDIR=${PREFIX}/bin 33 GNUBINDIR=${GNUPREFIX}/bin 34 INFODIR=${PREFIX}/share/info 35 MAN1DIR=${PREFIX}/share/man/man1 36 GNUMAN1DIR=${GNUPREFIX}/share/man/man1 37 LIBDIR=${PREFIX}/lib 38 LOCALEDIR=${PREFIX}/share/locale 39 40 MANSCRIPT=../sunman.sed 41 42 . ${SRC}/tools/install.subr 43 44 cd ${VERS} 45 46 # binaries 47 48 for i in cmp diff diff3 sdiff 49 do 50 _install E src/$i ${BINDIR}/g${i} 555 51 _install L ../../bin/g${i} ${GNUBINDIR}/${i} 52 done 53 54 # infofile 55 56 _install N doc/diff.info ${INFODIR}/diff.info 444 57 /usr/sfw/bin/install-info ${INFODIR}/diff.info ${INFODIR}/dir 58 59 # manpages 60 61 for i in cmp diff diff3 sdiff 62 do 63 _install M man/${i}.1 ${MAN1DIR}/g${i}.1 444 64 _install L ../../../../share/man/man1/g${i}.1 ${GNUMAN1DIR}/${i}.1 65 done 66 67 # locale source 68 69 cd po 70 for i in `ls *.gmo | cut -d'.' -f1` 71 do 72 _install N ${i}.gmo ${LOCALEDIR}/${i}/LC_MESSAGES/diffutils.mo 644 73 done 74 cd .. 75 76 exit 0 77