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/08/21 SMI" 30 # 31 32 # stop on first error 33 set -o errexit 34 35 PREFIX=${ROOT}/usr 36 SFWPREFIX=${PREFIX}/sfw 37 BINDIR=${PREFIX}/bin 38 LIBDIR=${PREFIX}/lib 39 INCDIR=${PREFIX}/include 40 SHAREDIR=${PREFIX}/share 41 MAN1DIR=${SHAREDIR}/man/man1 42 INFODIR=${SHAREDIR}/info 43 LOCALEDIR=${SHAREDIR}/locale 44 45 source ${SRC}/tools/install.subr 46 47 cd ${VERS} 48 49 _install L ../../bin/flex ${SFWPREFIX}/bin/flex 50 _install E flex ${BINDIR}/flex 555 51 _install D libfl.so.1 ${LIBDIR}/libfl.so.1 555 52 _install L libfl.so.1 ${LIBDIR}/libfl.so 53 _install L ../../lib/libfl.so.1 ${SFWPREFIX}/lib/libfl-2.5.4.so.0 54 _install N FlexLexer.h ${INCDIR}/FlexLexer.h 444 55 56 # The flex manpage is updated by Sun to include a comment, an 57 # ATTRIBUTES section with stability classification, and a NOTES 58 # section containing a pointer to the source package. We do this 59 # automatically at install time. If the package is revised, it is 60 # possible that additional changes may be required. This can be 61 # generally be done by updating the sunman-stability file. 62 63 MANSCRIPT=../../sunman-stability 64 65 cd doc 66 67 _install M flex.1 ${MAN1DIR}/flex.1 444 68 69 for name in flex.info* 70 do 71 _install N ${name} ${INFODIR}/${name} 444 72 done 73 74 /usr/sfw/bin/install-info --dir-file=${INFODIR}/dir ${INFODIR}/flex.info 75 76 cd .. 77 78 cd po 79 80 for cat in *.gmo 81 do 82 i=`basename $cat .gmo` 83 _install N ${cat} ${LOCALEDIR}/$i/LC_MESSAGES/flex.mo 444 84 done 85 86 exit 0 87