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 # ident "@(#)install-sfw 1.2 09/05/18 SMI" 28 # 29 30 # stop at first error 31 set -o errexit 32 33 PREFIX=${ROOT}/usr 34 BINDIR=${PREFIX}/bin 35 LIBDIR=${PREFIX}/lib 36 SHAREDIR=${PREFIX}/share 37 INCLUDEDIR=${PREFIX}/include 38 MAN1DIR=${SHAREDIR}/man/man1 39 40 # SRCDIR is passed in from Makefile.sfw as environment variable 41 KONKRETDIR=${SRCDIR}/src 42 KONKRETINCLUDEDIR=${INCLUDEDIR}/konkret 43 44 source ${SRC}/tools/install.subr 45 46 # bin 47 48 _install E ${KONKRETDIR}/program/konkret ${BINDIR}/konkret 555 49 _install E ${KONKRETDIR}/konkretreg/konkretreg ${BINDIR}/konkretreg 555 50 51 # lib 52 53 _install D ${KONKRETDIR}/konkret/.libs/libkonkret.so.0.0.0 ${LIBDIR}/libkonkret.so.0.0.0 555 54 _install L libkonkret.so.0.0.0 ${LIBDIR}/libkonkret.so 55 _install L libkonkret.so.0.0.0 ${LIBDIR}/libkonkret.so.0 56 57 # include 58 59 _install N ${KONKRETDIR}/konkret/konkret.h ${KONKRETINCLUDEDIR}/konkret.h 444 60 61 # man 62 63 _install N konkret.1 ${MAN1DIR}/konkret.1 444 64 _install N konkretreg.1 ${MAN1DIR}/konkretreg.1 444 65 66 exit 0 67