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 # install objects in the proto area, since it would 27 # really like to install locally, but that doesn't scale. 28 # 29 #ident "@(#)install-bison 1.10 09/09/21 SMI" 30 31 32 VERS=2.3 33 PKGVERS=bison-${VERS} 34 PREFIX=${ROOT}/usr 35 SFWPREFIX=${ROOT}/usr/sfw 36 BINDIR=${PREFIX}/bin 37 SHAREDIR=${PREFIX}/share 38 INFODIR=${PREFIX}/share/info 39 LIBDIR=${PREFIX}/lib 40 SFWLIBDIR=${SFWPREFIX}/lib 41 LOCALEDIR=${SHAREDIR}/locale 42 MAN1DIR=${SHAREDIR}/man/man1 43 44 . ${SRC}/tools/install.subr 45 46 cd ${PKGVERS} 47 48 _install N doc/bison.info ${PREFIX}/share/info/bison.info 444 49 _install D lib/liby.so.1 ${SFWLIBDIR}/liby.so.1 555 50 _install L liby.so.1 ${SFWLIBDIR}/liby.so 555 51 _install E src/bison ${PREFIX}/bin/bison 555 52 _install L ../../bin/bison ${SFWPREFIX}/bin/bison 53 _install N data/m4sugar/m4sugar.m4 ${SHAREDIR}/bison/m4sugar/m4sugar.m4 444 54 _install N data/README ${SHAREDIR}/bison/README 444 55 _install N data/c.m4 ${SHAREDIR}/bison/c.m4 444 56 _install N data/yacc.c ${SHAREDIR}/bison/yacc.c 444 57 _install N data/glr.c ${SHAREDIR}/bison/glr.c 444 58 _install N data/c++.m4 ${SHAREDIR}/bison/c++.m4 444 59 _install N data/location.cc ${SHAREDIR}/bison/location.cc 444 60 _install N data/lalr1.cc ${SHAREDIR}/bison/lalr1.cc 444 61 _install N data/glr.cc ${SHAREDIR}/bison/glr.cc 444 62 _install N m4/bison-i18n.m4 ${SHAREDIR}/aclocal/bison-i18n.m4 444 63 64 # 65 # Install the locale source 66 # 67 cd po 68 for i in `ls *.gmo | cut -d'.' -f1` 69 do 70 _install N ${i}.gmo ${LOCALEDIR}/${i}/LC_MESSAGES/bison.mo 644 71 done 72 cd .. 73 74 cd runtime-po 75 for i in `ls *.gmo | cut -d'.' -f1` 76 do 77 _install N ${i}.gmo ${LOCALEDIR}/${i}/LC_MESSAGES/bison-runtime.mo 644 78 done 79 cd .. 80 81 /usr/sfw/bin/install-info --dir-file=${INFODIR}/dir ${INFODIR}/bison.info 82 83 # 84 # The manpages are updated by Sun to include a comment, an 85 # ATTRIBUTES section with stability classification, and a NOTES 86 # section containing a pointer to the source package. We do this 87 # automatically at install time. If the package is revised, it is 88 # possible that additional changes may be required. This can be 89 # generally be done by updating the sunman-stability file. 90 91 MANSCRIPT=sunman-stability 92 93 cd ../ 94 95 i=bison.1.sunman 96 manpage=`basename $i .sunman` 97 _install M ${i} ${MAN1DIR}/${manpage} 444 98 99 exit 0 100