Old install-sfw
1 #
2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 #
22
23
24 #!/bin/sh
25 #
26 # Copyright (c) 1999-2002 by Sun Microsystems, Inc.
27 # All rights reserved.
28 #
29 # install aalib's objects in the proto area, since it would really
30 # like to install locally, but that doesn't scale.
31 #
32 #ident "@(#)install-sfw 1.4 02/01/14 SMI"
33
34 VERS=1.2
35 PREFIX=${ROOT}/opt/sfw
36 BINDIR=${PREFIX}/bin
37 LIBDIR=${PREFIX}/lib
38 INCDIR=${PREFIX}/include
39 MAN1DIR=${PREFIX}/man/man1
40 MAN1MDIR=${PREFIX}/man/man1m
41 MAN3DIR=${PREFIX}/man/man3
42 MAN3XDIR=${PREFIX}/man/man3x
43 MAN5DIR=${PREFIX}/man/man5
44 MAN7DIR=${PREFIX}/man/man7
45 INFODIR=${PREFIX}/info
46 SHAREDIR=${PREFIX}/share
47 TERMINFODIR=${PREFIX}/share/terminfo
48 TABSETDIR=${PREFIX}/share/tabset
49 datadir=/opt/sfw/share
50
51 cd aalib-${VERS}
52
53 for i in aalib.h
54 do
55 rm -f ${INCDIR}/${i}
56 cp ${i} ${INCDIR}/${i}
57 chmod 644 ${INCDIR}/${i}
58 done
59
60 for i in aalib.info
61 do
62 rm -f ${INFODIR}/${i}
63 cp ${i} ${INFODIR}/${i}
64 chmod 444 ${INFODIR}/${i}
65 /usr/sfw/bin/install-info --dir-file=${INFODIR}/dir ${INFODIR}/$i >/dev/null 2>&1
66 done
67
68 cd .libs
69
70 rm -f ${LIBDIR}/libaa.la
71 sed 's,installed=no,installed=yes,' \
72 < libaa.la > ${LIBDIR}/libaa.la
73 chmod 755 ${LIBDIR}/libaa.la
74
75 cp libaa.so.1.0.3 ${LIBDIR}/libaa.so.1.0.3
76 chmod 755 ${LIBDIR}/libaa.so.1.0.3
77 rm -f ${LIBDIR}/libaa.so
78 ln -s libaa.so.1.0.3 ${LIBDIR}/libaa.so
79 rm -f ${LIBDIR}/libaa.so.1
80 ln -s libaa.so.1.0.3 ${LIBDIR}/libaa.so.1
81
82 for i in aainfo aatest aafire aasavefont
83 do
84 rm -f ${BINDIR}/${i}
85 cp ${i} ${BINDIR}/${i}
86 strip ${BINDIR}/${i}
87 chmod 555 ${BINDIR}/${i}
88 done
89
90 exit 0