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 |
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
|
|
25 |
# Use is subject to license terms.
|
|
26 |
#
|
|
27 |
#pragma ident "@(#)install-sfw 1.1 08/11/18 SMI"
|
|
28 |
#
|
|
29 |
# makefile.master {usr/src} sets the following:
|
|
30 |
#
|
|
31 |
# CFGPREFIX= /usr
|
|
32 |
# CFGBIN= ${CFGPREFIX}/bin
|
|
33 |
# CFGMAN= ${CFGPREFIX}/share/man
|
|
34 |
# CFGMAN1= ${CFGMAN}/man1
|
|
35 |
#
|
|
36 |
# ROOTxxx refers to the build root {proto/MACHTYPE/...}
|
|
37 |
#
|
|
38 |
# ROOTBIN= ${ROOT}${CFGBIN}
|
|
39 |
# ROOTMAN1= ${ROOT}${CFGMAN1}
|
|
40 |
#
|
|
41 |
|
|
42 |
# Stop at first error
|
|
43 |
set -o errexit
|
|
44 |
|
|
45 |
#
|
|
46 |
# set base information
|
|
47 |
#
|
|
48 |
CFGPREFIX=/usr
|
|
49 |
CFGBIN=${CFGPREFIX}/bin
|
|
50 |
CFGMAN=${CFGPREFIX}/share/man
|
|
51 |
CFGMAN1=${CFGMAN}/man1
|
|
52 |
|
|
53 |
ROOTBIN=${ROOT}${CFGBIN}
|
|
54 |
ROOTMAN1=${ROOT}${CFGMAN1}
|
|
55 |
ETCDIR=${ROOT}/etc
|
|
56 |
|
|
57 |
QUILTLIB=${ROOT}/usr/lib/quilt
|
|
58 |
QUILTDOC=${ROOT}/usr/share/doc/quilt-0.47
|
|
59 |
QUILTSHARE=${ROOT}/usr/share/quilt
|
|
60 |
QUILTCOMPAT=${ROOT}/usr/share/quilt/compat
|
|
61 |
QUILTSCRIPTS=${ROOT}/usr/share/quilt/scripts
|
|
62 |
QUILTLOCALE=${ROOT}/usr/share/locale
|
|
63 |
|
|
64 |
PKGVERS=quilt-0.47
|
|
65 |
TOPDIR=$PWD/${PKGVERS}
|
|
66 |
|
|
67 |
source ${SRC}/tools/install.subr
|
|
68 |
|
|
69 |
#
|
|
70 |
# populate man page
|
|
71 |
#
|
|
72 |
cd ${TOPDIR}
|
|
73 |
|
|
74 |
MANSCRIPT=../sunman-stability
|
|
75 |
_install M doc/quilt.1 ${ROOTMAN1}/quilt.1 444
|
|
76 |
_install M bin/guards.1 ${ROOTMAN1}/guards.1 444
|
|
77 |
|
|
78 |
#
|
|
79 |
# populate /usr/bin
|
|
80 |
#
|
|
81 |
_install S bin/quilt ${ROOTBIN}/quilt 555
|
|
82 |
_install P bin/guards ${ROOTBIN}/guards 555
|
|
83 |
|
|
84 |
#
|
|
85 |
# populate /etc
|
|
86 |
#
|
|
87 |
_install N quilt.quiltrc ${ETCDIR}/quilt.quiltrc 644
|
|
88 |
|
|
89 |
#
|
|
90 |
# populate /usr/lib
|
|
91 |
#
|
|
92 |
_install E lib/backup-files ${QUILTLIB}/backup-files 555
|
|
93 |
|
|
94 |
#
|
|
95 |
# populate /usr/share
|
|
96 |
#
|
|
97 |
_install N doc/README ${QUILTDOC}/README 444
|
|
98 |
_install N doc/README.MAIL ${QUILTDOC}/README.MAIL 444
|
|
99 |
_install N doc/quilt.pdf ${QUILTDOC}/quilt.pdf 444
|
|
100 |
|
|
101 |
_install N lib/quilt.el ${ROOT}/usr/share/emacs/site-lisp/quilt.el 444
|
|
102 |
|
|
103 |
_install N po/de.mo ${QUILTLOCALE}/de/LC_MESSAGES/quilt.mo 444
|
|
104 |
_install N po/fr.mo ${QUILTLOCALE}/fr/LC_MESSAGES/quilt.mo 444
|
|
105 |
_install N po/ja.mo ${QUILTLOCALE}/ja/LC_MESSAGES/quilt.mo 444
|
|
106 |
|
|
107 |
#
|
|
108 |
# populate /usr/share/quilt
|
|
109 |
#
|
|
110 |
_install S quilt/add ${QUILTSHARE}/add 555
|
|
111 |
_install S quilt/annotate ${QUILTSHARE}/annotate 555
|
|
112 |
_install S quilt/applied ${QUILTSHARE}/applied 555
|
|
113 |
_install S quilt/delete ${QUILTSHARE}/delete 555
|
|
114 |
_install S quilt/diff ${QUILTSHARE}/diff 555
|
|
115 |
_install S quilt/edit ${QUILTSHARE}/edit 555
|
|
116 |
_install S quilt/files ${QUILTSHARE}/files 555
|
|
117 |
_install S quilt/fold ${QUILTSHARE}/fold 555
|
|
118 |
_install S quilt/fork ${QUILTSHARE}/fork 555
|
|
119 |
_install S quilt/graph ${QUILTSHARE}/graph 555
|
|
120 |
_install S quilt/grep ${QUILTSHARE}/grep 555
|
|
121 |
_install S quilt/header ${QUILTSHARE}/header 555
|
|
122 |
_install S quilt/import ${QUILTSHARE}/import 555
|
|
123 |
_install S quilt/mail ${QUILTSHARE}/mail 555
|
|
124 |
_install S quilt/new ${QUILTSHARE}/new 555
|
|
125 |
_install S quilt/next ${QUILTSHARE}/next 555
|
|
126 |
_install S quilt/patches ${QUILTSHARE}/patches 555
|
|
127 |
_install S quilt/pop ${QUILTSHARE}/pop 555
|
|
128 |
_install S quilt/previous ${QUILTSHARE}/previous 555
|
|
129 |
_install S quilt/push ${QUILTSHARE}/push 555
|
|
130 |
_install S quilt/refresh ${QUILTSHARE}/refresh 555
|
|
131 |
_install S quilt/rename ${QUILTSHARE}/rename 555
|
|
132 |
_install S quilt/revert ${QUILTSHARE}/revert 555
|
|
133 |
_install S quilt/series ${QUILTSHARE}/series 555
|
|
134 |
_install S quilt/setup ${QUILTSHARE}/setup 555
|
|
135 |
_install S quilt/snapshot ${QUILTSHARE}/snapshot 555
|
|
136 |
_install S quilt/top ${QUILTSHARE}/top 555
|
|
137 |
_install S quilt/unapplied ${QUILTSHARE}/unapplied 555
|
|
138 |
_install S quilt/upgrade ${QUILTSHARE}/upgrade 555
|
|
139 |
|
|
140 |
#
|
|
141 |
# populate /usr/share/quilt/compat
|
|
142 |
#
|
|
143 |
_install S compat/column ${QUILTCOMPAT}/column 555
|
|
144 |
_install S compat/getopt ${QUILTCOMPAT}/getopt 555
|
|
145 |
_install L ../../../bin/gawk ${QUILTCOMPAT}/awk
|
|
146 |
_install L ../../../gnu/bin/cp ${QUILTCOMPAT}/cp
|
|
147 |
_install L ../../../gnu/bin/date ${QUILTCOMPAT}/date
|
|
148 |
_install L ../../../gnu/bin/diff ${QUILTCOMPAT}/diff
|
|
149 |
_install L ../../../gnu/bin/grep ${QUILTCOMPAT}/grep
|
|
150 |
_install L ../../../gnu/bin/patch ${QUILTCOMPAT}/patch
|
|
151 |
_install L ../../../gnu/bin/sed ${QUILTCOMPAT}/sed
|
|
152 |
_install L ../../../sbin/sendmail ${QUILTCOMPAT}/sendmail
|
|
153 |
_install L ../../../gnu/bin/tail ${QUILTCOMPAT}/tail
|
|
154 |
_install L ../../../bin/gtar ${QUILTCOMPAT}/tar
|
|
155 |
_install L ../../../gnu/bin/tr ${QUILTCOMPAT}/tr
|
|
156 |
|
|
157 |
#
|
|
158 |
# populate /usr/share/quilt/scripts
|
|
159 |
#
|
|
160 |
_install N quilt/scripts/patchfns ${QUILTSCRIPTS}/patchfns 444
|
|
161 |
_install S quilt/scripts/dependency-graph ${QUILTSCRIPTS}/dependency-graph 555
|
|
162 |
_install S quilt/scripts/edmail ${QUILTSCRIPTS}/edmail 555
|
|
163 |
_install S quilt/scripts/inspect ${QUILTSCRIPTS}/inspect 555
|
|
164 |
_install S quilt/scripts/parse-patch ${QUILTSCRIPTS}/parse-patch 555
|
|
165 |
_install S quilt/scripts/remove-trailing-ws ${QUILTSCRIPTS}/remove-trailing-ws 555
|
|
166 |
|
|
167 |
|
|
168 |
|
|
169 |
exit 0
|