author | Jon Tibble <meths@btinternet.com> |
Fri, 10 Feb 2012 16:19:42 +0000 | |
branch | oi_151a |
changeset 114 | b6d40d0a7b17 |
parent 12 | 12fc69ddc5a5 |
permissions | -rwxr-xr-x |
0 | 1 |
#!/bin/sh |
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 |
# |
|
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 | 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 | 27 |
|
28 |
# Define directories |
|
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 | 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 | 35 |
|
36 |
# stability |
|
37 |
MANSCRIPT=${PWD}/sunman-stability |
|
38 |
||
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 | 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 | 43 |
|
44 |
# Include common scripts |
|
45 |
. ${SRC}/tools/install.subr |
|
46 |
||
47 |
cd ${PKGVERS} |
|
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 | 52 |
|
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 | 55 |
|
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 | 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 | 76 |
|
77 |
# Exit now |
|
78 |
exit 0 |