1 #!/bin/sh -e 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 2008 Sun Microsystems, Inc. All rights reserved. 24 # Use is subject to license terms. 25 # 26 #ident "@(#)install-sfw 1.1 08/01/15 SMI" 27 28 VERS=0.16.1 29 30 PREFIX=${ROOT}/usr 31 GNUPREFIX=${ROOT}/usr/gnu 32 BINDIR=${PREFIX}/bin 33 GNUBINDIR=${GNUPREFIX}/bin 34 MAN1DIR=${PREFIX}/share/man/man1 35 GNUMAN1DIR=${GNUPREFIX}/share/man/man1 36 LIBDIR=${PREFIX}/share 37 LOCALEDIR=${LIBDIR}/locale 38 39 LOCALELIST="de es fr it ja ko pl pt_BR ru sv tr zh_TW" 40 41 CMDRUNTIME="ngettext envsubst" 42 GCMDRUNTIME="gettext" 43 CMDTOOLS="msgattrib msgcat msgcmp msgcomm msgconv msgen msgexec msgfilter msggrep msginit msgmerge msgunfmt msguniq" 44 GCMDTOOLS="msgfmt xgettext" 45 46 MANSCRIPT=../sunman.sed 47 48 . ${SRC}/tools/install.subr 49 50 cd gettext-${VERS} 51 52 # binaries in gettext-runtime with g prefix 53 54 for i in ${GCMDRUNTIME} 55 do 56 _install E gettext-runtime/src/$i ${BINDIR}/g${i} 555 57 _install L ../../bin/g${i} ${GNUBINDIR}/${i} 58 done 59 60 # binaries in gettext-runtime 61 62 for i in ${CMDRUNTIME} 63 do 64 _install E gettext-runtime/src/$i ${BINDIR}/${i} 555 65 done 66 67 # binaries in gettext-tools with g prefix 68 69 for i in ${GCMDTOOLS} 70 do 71 _install E gettext-tools/src/$i ${BINDIR}/g${i} 555 72 _install L ../../bin/g${i} ${GNUBINDIR}/${i} 73 done 74 75 # binaries in gettext-tools without g prefix 76 77 for i in ${CMDTOOLS} 78 do 79 _install E gettext-tools/src/$i ${BINDIR}/${i} 555 80 done 81 82 # manpages in gettext-runtime 83 84 for i in ${GCMDRUNTIME} 85 do 86 _install M gettext-runtime/man/${i}.1 ${MAN1DIR}/g${i}.1 444 87 _install L ../../../../share/man/man1/g${i}.1 ${GNUMAN1DIR}/${i}.1 88 done 89 90 for i in ${CMDRUNTIME} 91 do 92 _install M gettext-runtime/man/${i}.1 ${MAN1DIR}/${i}.1 444 93 done 94 95 # manpages in gettext-tools 96 97 for i in ${GCMDTOOLS} 98 do 99 _install M gettext-tools/man/${i}.1 ${MAN1DIR}/g${i}.1 444 100 _install L ../../../../share/man/man1/g${i}.1 ${GNUMAN1DIR}/${i}.1 101 done 102 103 # manpages in gettext-tools without g prefix 104 105 for i in ${CMDTOOLS} 106 do 107 _install M gettext-tools/man/${i}.1 ${MAN1DIR}/${i}.1 444 108 done 109 110 # locale source 111 112 for d in gettext-tools gettext-runtime 113 do 114 cd ${d}/po 115 for loc in ${LOCALELIST} 116 do 117 _install N ${loc}.gmo ${LOCALEDIR}/${loc}/LC_MESSAGES/${d}.mo 644 118 done 119 cd ../.. 120 done 121 122 exit 0 123