0
|
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 |
#
|
|
25 |
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
|
|
26 |
# Use is subject to license terms.
|
|
27 |
#
|
|
28 |
# ident "@(#)install-sfw 1.2 09/06/12 SMI"
|
|
29 |
|
|
30 |
PREFIX=${ROOT}/usr/share/areca
|
|
31 |
|
|
32 |
# stop at first error
|
|
33 |
set -o errexit
|
|
34 |
|
|
35 |
source ${SRC}/tools/install.subr
|
|
36 |
|
|
37 |
#prepare files
|
|
38 |
ARECA_LIST="\
|
|
39 |
areca.sh \
|
|
40 |
check_version.sh"
|
|
41 |
ARECA_LIC_LIST="\
|
|
42 |
AUTHORS \
|
|
43 |
COPYING \
|
|
44 |
README"
|
|
45 |
ARECA_BIN_LIST=`ls ${VERS}/bin`
|
|
46 |
ARECA_LIB_LIST=`ls ${VERS}/lib|egrep -v ".so|linux"`
|
|
47 |
ARECA_CONFIG_LIST=`ls ${VERS}/config`
|
|
48 |
ARECA_ICON_LIST=`ls ${VERS}/icons|grep png`
|
|
49 |
ARECA_ICON_BLIST=`ls ${VERS}/icons/big|grep png`
|
|
50 |
ARECA_RES_LIST=`ls ${VERS}/resources`
|
|
51 |
ARECA_LICENSE=`ls ${VERS}/license`
|
|
52 |
|
|
53 |
#install files
|
|
54 |
for i in ${ARECA_LIST}
|
|
55 |
do
|
|
56 |
_install N ${VERS}/${i} ${PREFIX}/${i} 555
|
|
57 |
done
|
|
58 |
|
|
59 |
#install license files
|
|
60 |
for i in ${ARECA_LIC_LIST}
|
|
61 |
do
|
|
62 |
_install N ${VERS}/${i} ${PREFIX}/${i} 444
|
|
63 |
done
|
|
64 |
|
|
65 |
#install bin
|
|
66 |
for i in ${ARECA_BIN_LIST}
|
|
67 |
do
|
|
68 |
_install S ${VERS}/bin/${i} ${PREFIX}/bin/${i} 555
|
|
69 |
done
|
|
70 |
|
|
71 |
#install jar libraries
|
|
72 |
for i in ${ARECA_LIB_LIST}
|
|
73 |
do
|
|
74 |
_install N ${VERS}/lib/${i} ${PREFIX}/lib/${i} 555
|
|
75 |
done
|
|
76 |
|
|
77 |
#install config
|
|
78 |
for i in ${ARECA_CONFIG_LIST}
|
|
79 |
do
|
|
80 |
_install N ${VERS}/config/${i} ${PREFIX}/config/${i} 444
|
|
81 |
done
|
|
82 |
|
|
83 |
#install icons
|
|
84 |
for i in ${ARECA_ICON_LIST}
|
|
85 |
do
|
|
86 |
_install N ${VERS}/icons/${i} ${PREFIX}/icons/${i} 444
|
|
87 |
done
|
|
88 |
|
|
89 |
for i in ${ARECA_ICON_BLIST}
|
|
90 |
do
|
|
91 |
_install N ${VERS}/icons/big/${i} ${PREFIX}/icons/big/${i} 444
|
|
92 |
done
|
|
93 |
|
|
94 |
#install resources
|
|
95 |
for i in ${ARECA_RES_LIST}
|
|
96 |
do
|
|
97 |
_install N ${VERS}/resources/${i} ${PREFIX}/translations/${i} 444
|
|
98 |
done
|
|
99 |
|
|
100 |
#install license
|
|
101 |
_install N ${VERS}/license/${ARECA_LICENSE} ${PREFIX}/license/${ARECA_LICENSE} 444
|
|
102 |
|
|
103 |
#install link
|
|
104 |
_install L ../share/areca/areca.sh ${ROOT}/usr/bin/areca
|
|
105 |
|
|
106 |
exit 0
|