#!/bin/sh
#
# 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 (c) 2010, Oracle and/or its affiliates. All rights reserved.
#
# ident "@(#)install-sfw 1.5 10/04/06 SMI"
#
# Define directories
PREFIX=${ROOT}/usr
DOCDIR=${PREFIX}/share/doc/mc
MANDIR=${PREFIX}/share/man
MCDIR=${PREFIX}/share/mc
MCEFSDIR=${MCDIR}/extfs.d
MCBINDIR=${MCDIR}/bin
# stability
MANSCRIPT=${PWD}/sunman-stability
# Create proper directories if needed
mkdir -p ${DOCDIR}
mkdir -p ${MCBINDIR}
chmod 755 ${MCBINDIR}
# Include common scripts
. ${SRC}/tools/install.subr
cd ${PKGVERS}
# Localized manpages are not supported
rm -rf ${MANDIR}/es ${MANDIR}/pl ${MANDIR}/hu \
${MANDIR}/it ${MANDIR}/sr ${MANDIR}/ru
# Additional extfs files
_install N lib/vfs/mc-vfs/extfs/README ${MCEFSDIR}/README 444
# Script files
_install S ${MCDIR}/mc.csh ${MCBINDIR}/mc.csh 555
_install S ${MCDIR}/mc.sh ${MCBINDIR}/mc.sh 555
_install S ${MCDIR}/mc-wrapper.csh ${MCBINDIR}/mc-wrapper.csh 555
_install S ${MCDIR}/mc-wrapper.sh ${MCBINDIR}/mc-wrapper.sh 555
rm -f ${MCDIR}/mc.csh ${MCDIR}/mc.sh \
${MCDIR}/mc-wrapper.csh ${MCDIR}/mc-wrapper.sh
# Some documents
_install N ABOUT-NLS ${DOCDIR}/ABOUT-NLS 444
_install N AUTHORS ${DOCDIR}/AUTHORS 444
_install N ChangeLog ${DOCDIR}/ChangeLog 444
_install N COPYING ${DOCDIR}/COPYING 444
_install N doc/FAQ ${DOCDIR}/FAQ 444
_install N doc/INSTALL ${DOCDIR}/INSTALL 444
_install N doc/INSTALL.FAST ${DOCDIR}/INSTALL.FAST 444
_install N doc/MAINTAINERS ${DOCDIR}/MAINTAINERS 444
_install N doc/NEWS ${DOCDIR}/NEWS 444
_install N doc/README ${DOCDIR}/README 444
_install N doc/README.QNX ${DOCDIR}/README.QNX 444
# Exit now
exit 0