1 #! /usr/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 # |
|
23 # Copyright 2007 Sun Microsystems, Inc. All rights reserved. |
|
24 # Use is subject to license terms. |
|
25 # |
|
26 #ident "@(#)install-sfw 1.1 07/07/26 SMI" |
|
27 |
|
28 VERS=tidy-1.0.0 |
|
29 |
|
30 PREFIX=${ROOT}/usr |
|
31 LIBDIR=${PREFIX}/lib |
|
32 INCDIR=${PREFIX}/include/tidy |
|
33 BINDIR=${PREFIX}/bin |
|
34 DOCDIR=${PREFIX}/share/doc/tidy |
|
35 MAN1DIR=${PREFIX}/share/man/man1 |
|
36 MAN3DIR=${PREFIX}/share/man/man3 |
|
37 ROOTMAN1DIR=${MAN1DIR} |
|
38 ROOTMAN3DIR=${MAN3DIR} |
|
39 TOP=`pwd` |
|
40 |
|
41 MANSCRIPT=../sunman-stability |
|
42 . ${SRC}/tools/install.subr |
|
43 |
|
44 cd ${VERS} |
|
45 |
|
46 _install E console/.libs/tab2space ${BINDIR}/tab2space 0555 |
|
47 _install E console/.libs/tidy ${BINDIR}/tidy 0555 |
|
48 |
|
49 _install N include/buffio.h ${INCDIR}/buffio.h 0644 |
|
50 _install N include/platform.h ${INCDIR}/platform.h 0644 |
|
51 _install N include/tidy.h ${INCDIR}/tidy.h 0644 |
|
52 _install N include/tidyenum.h ${INCDIR}/tidyenum.h 0644 |
|
53 |
|
54 _install D src/.libs/libtidy-1.0.so.0.0.0 ${LIBDIR}/libtidy-1.0.so.0.0.0 0755 |
|
55 _install L libtidy-1.0.so.0.0.0 ${LIBDIR}/libtidy-1.0.so.0 |
|
56 _install L libtidy-1.0.so.0.0.0 ${LIBDIR}/libtidy-1.0.so |
|
57 _install L libtidy-1.0.so.0.0.0 ${LIBDIR}/libtidy.so |
|
58 |
|
59 _install N ../llib-ltidy ${LIBDIR}/llib-ltidy 0644 |
|
60 _install N llib-ltidy.ln ${LIBDIR}/llib-ltidy.ln 0644 |
|
61 |
|
62 _install M ../Solaris/tidy.1 ${MAN1DIR}/tidy.1 0644 |
|
63 _install M ../Solaris/tab2space.1 ${MAN1DIR}/tab2space.1 0644 |
|
64 _install M ../Solaris/libtidy.3 ${MAN3DIR}/libtidy.3 0644 |
|
65 |
|
66 cd ${TOP} |
|
67 rm -rf ${DOCDIR}/html |
|
68 gzip -cd doc.html.tar | (cd ${DOCDIR} ; tar fx -) |
|
69 cd ${DOCDIR} |
|
70 find . -type f -exec chmod 0444 {} \; |
|
71 find . -type d -exec chmod 0755 {} \; |
|
72 cd ${TOP} |
|
73 |
|