usr/src/cmd/mc/install-sfw
author Jon Tibble <meths@btinternet.com>
Fri, 10 Feb 2012 16:19:42 +0000
branchoi_151a
changeset 114 b6d40d0a7b17
parent 12 12fc69ddc5a5
permissions -rwxr-xr-x
Added tag oi_151a_prestable1 for changeset b1282e88c680
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     1
#!/bin/sh
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     2
#
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     3
# CDDL HEADER START
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     4
#
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     5
# The contents of this file are subject to the terms of the
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     6
# Common Development and Distribution License (the "License").
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     7
# You may not use this file except in compliance with the License.
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     8
#
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     9
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    10
# or http://www.opensolaris.org/os/licensing.
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    11
# See the License for the specific language governing permissions
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    12
# and limitations under the License.
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    13
#
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    14
# When distributing Covered Code, include this CDDL HEADER in each
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    15
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    16
# If applicable, add the following below this CDDL HEADER, with the
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    17
# fields enclosed by brackets "[]" replaced with your own identifying
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    18
# information: Portions Copyright [yyyy] [name of copyright owner]
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    19
#
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    20
# CDDL HEADER END
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    21
#
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    22
#
12
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    23
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    24
#
12
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    25
# ident	"@(#)install-sfw	1.5	10/04/06 SMI"
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    26
#
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    27
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    28
# Define directories
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    29
PREFIX=${ROOT}/usr
12
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    30
DOCDIR=${PREFIX}/share/doc/mc
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    31
MANDIR=${PREFIX}/share/man
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    32
MCDIR=${PREFIX}/share/mc
12
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    33
MCEFSDIR=${MCDIR}/extfs.d
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    34
MCBINDIR=${MCDIR}/bin
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    35
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    36
# stability
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    37
MANSCRIPT=${PWD}/sunman-stability
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    38
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    39
# Create proper directories if needed
12
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    40
mkdir -p ${DOCDIR}
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    41
mkdir -p ${MCBINDIR}
12
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    42
chmod 755 ${MCBINDIR}
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    43
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    44
# Include common scripts
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    45
. ${SRC}/tools/install.subr
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    46
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    47
cd ${PKGVERS}
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    48
12
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    49
# Localized manpages are not supported
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    50
rm -rf ${MANDIR}/es ${MANDIR}/pl ${MANDIR}/hu \
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    51
    ${MANDIR}/it ${MANDIR}/sr ${MANDIR}/ru
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    52
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    53
# Additional extfs files
12
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    54
_install N lib/vfs/mc-vfs/extfs/README	${MCEFSDIR}/README	444
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    55
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    56
# Script files
12
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    57
_install S ${MCDIR}/mc.csh		${MCBINDIR}/mc.csh		555
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    58
_install S ${MCDIR}/mc.sh		${MCBINDIR}/mc.sh		555
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    59
_install S ${MCDIR}/mc-wrapper.csh	${MCBINDIR}/mc-wrapper.csh	555
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    60
_install S ${MCDIR}/mc-wrapper.sh	${MCBINDIR}/mc-wrapper.sh	555
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    61
rm -f ${MCDIR}/mc.csh ${MCDIR}/mc.sh \
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    62
    ${MCDIR}/mc-wrapper.csh ${MCDIR}/mc-wrapper.sh
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    63
12
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    64
# Some documents
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    65
_install N ABOUT-NLS		${DOCDIR}/ABOUT-NLS	444
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    66
_install N AUTHORS		${DOCDIR}/AUTHORS	444
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    67
_install N ChangeLog		${DOCDIR}/ChangeLog	444
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    68
_install N COPYING		${DOCDIR}/COPYING	444
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    69
_install N doc/FAQ		${DOCDIR}/FAQ		444
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    70
_install N doc/INSTALL		${DOCDIR}/INSTALL	444
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    71
_install N doc/INSTALL.FAST	${DOCDIR}/INSTALL.FAST	444
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    72
_install N doc/MAINTAINERS	${DOCDIR}/MAINTAINERS	444
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    73
_install N doc/NEWS		${DOCDIR}/NEWS		444
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    74
_install N doc/README		${DOCDIR}/README	444
12fc69ddc5a5 Import sfw build 138
"Cyril Plisko <cyril.plisko@grigale.com>"
parents: 0
diff changeset
    75
_install N doc/README.QNX	${DOCDIR}/README.QNX	444
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    76
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    77
# Exit now
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    78
exit 0