usr/src/cmd/simplewbem/install-sfw
author Jon Tibble <meths@btinternet.com>
Fri, 10 Feb 2012 16:19:42 +0000
branchoi_151a
changeset 114 b6d40d0a7b17
parent 0 b34509ac961f
permissions -rw-r--r--
Added tag oi_151a_prestable1 for changeset b1282e88c680

#!/bin/ksh93
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# ident	"@(#)install-sfw	1.1	09/02/04 SMI"

# Stop at first error
set -o errexit

PREFIX=${ROOT}/usr
BINDIR=${PREFIX}/bin
LIBDIR=${PREFIX}/lib
INCLUDE_DIR=${PREFIX}/include
SHAREDIR=${PREFIX}/share
CIMPLE_INCLUDE_DIR=${PREFIX}/include/cimple
BREVITY_INCLUDE_DIR=${PREFIX}/include/brevity
MANDIR=${SHAREDIR}/man/man1

source ${SRC}/tools/install.subr

# BLDDIR is passed in from Makefile.sfw as environment variable

# install binaries/commands

CIMPLE_BIN_LIST="\
	genclass \
	genhnd \
	genmak \
	genmod \
	genproj \
	genprov \
	regmod"


for i in ${CIMPLE_BIN_LIST}
do
  _install E ${BLDDIR}/bin/${i} ${BINDIR}/${i} 555
done


# install libraries

CIMPLE_LIB_LIST="\
	libcimple.so \
	libcimplepegadap.so \
	libcimplecmpiadap.so \
	libbrevity.so"

for i in ${CIMPLE_LIB_LIST}
do
  _install D ${BLDDIR}/lib/${i} ${LIBDIR}/${i} 555
done


# install Header files

CIMPLE_HEADER_LIST=" \
	Arg.h \
	Array.h \
	Array_Impl.h \
	Atomic.h \
	Atomic_Counter.h \
	Atomic_DARWIN_IX86_GNU.h \
	Atomic_DARWIN_PPC_GNU.h \
	Atomic_LINUX_IA64_GNU.h \
	Atomic_LINUX_IX86_GNU.h \
	Atomic_LINUX_PPC_GNU.h \
	Atomic_LINUX_S390_GNU.h \
	Atomic_SOLARIS_SPARC_GNU.h \
	Atomic_SOLARIS_CC.h \
	Atomic_SOLARIS_SPARC_CC.h \
	Atomic_SOLARIS_IX86_CC.h \
	Atomic_VXWORKS_XSCALE_GNU.h \
	Atomic_WIN32_IX86_MSVC.h \
	Auto_Mutex.h \
	Buffer.h \
	Cond.h \
	Container.h \
	Cond_Queue.h \
	Datetime.h \
	Error.h \
	Exception.h \
	File_Lock.h \
	Instance.h \
	Instance_Hnd.h \
	Instance_Map.h \
	Instance_Ref.h \
	Magic.h \
	Meta_Class.h \
	Meta_Feature.h \
	Meta_Method.h \
	Meta_Property.h \
	Meta_Qualifier.h \
	Meta_Reference.h \
	Meta_Repository.h \
	Meta_Value.h \
	Mutex.h \
	Ops.h \
	Property.h \
	Provider.h \
	Provider_Handle.h \
	Ref.h \
	Registration.h \
	Stack.h \
	String.h \
	Strings.h \
	TSD.h \
	Thread.h \
	Thread_Context.h \
	Time.h \
	Type.h \
	Value.h \
	boolean.h \
	char16.h \
	cimom.h \
	cimple.h \
	config.h \
	flags.h \
	flavor.h \
	integer.h \
	io.h \
	linkage.h \
	log.h \
	octets.h \
	options.h \
	platform_DARWIN.h \
	platform_LINUX.h \
	platform_DARWIN_IX86_GNU.h \
	platform_DARWIN_PPC_GNU.h \
	platform_LINUX_IA64_GNU.h \
	platform_LINUX_IX86_GNU.h \
	platform_LINUX_PPC_GNU.h \
	platform_LINUX_S390_GNU.h \
	platform_LINUX_X86_64_GNU.h \
	platform_SOLARIS_SPARC_GNU.h \
	platform_SOLARIS_CC.h \
	platform_SOLARIS_SPARC_CC.h \
	platform_SOLARIS_SPARC_64_CC.h \
	platform_SOLARIS_IX86_CC.h  \
	platform_SOLARIS_X86_64_CC.h \
	platform_VXWORKS_XSCALE_GNU.h \
	platform_VXWORKS_internal.h \
	platform_WIN32_IX86_MSVC.h \
	ptr_array.h \
	real.h \
	scope.h"


for i in ${CIMPLE_HEADER_LIST}
do
  _install N ${BLDDIR}/src/cimple/${i} ${CIMPLE_INCLUDE_DIR}/${i} 444
done

BREVITY_HEADER_LIST="\
	Client.h \
	Instance_Enum.h \
	Instance_Enum_Rep.h \
	Instance_Name_Enum.h \
	Instance_Name_Enum_Rep.h \
	brevity.h \
	defines.h \
	linkage.h"

for i in ${BREVITY_HEADER_LIST}
do
  _install N ${BLDDIR}/src/brevity/${i} ${BREVITY_INCLUDE_DIR}/${i} 444
done


# install Man pages

CIMPLE_MAN_LIST="\
	genclass.1 \
	genhnd.1 \
	genmak.1 \
	genmod.1 \
	genproj.1 \
	genprov.1 \
	regmod.1"

for i in ${CIMPLE_MAN_LIST}
do
  _install N ${i} ${MANDIR}/${i} 444
done

exit 0