Home | History | Annotate | Download | only in elinks
      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 2009 Sun Microsystems, Inc.  All rights reserved.
     25 # Use is subject to license terms.
     26 #
     27 # ident	"@(#)install-sfw	1.1	09/04/06 SMI"
     28 #
     29 
     30 # stop at first error
     31 set -o errexit
     32 
     33 PREFIX=${ROOT}/usr
     34 BINDIR=${PREFIX}/bin
     35 SHAREDIR=${PREFIX}/share
     36 MAN1DIR=${SHAREDIR}/man/man1
     37 MAN5DIR=${SHAREDIR}/man/man5
     38 LOCALEDIR=${SHAREDIR}/locale
     39 DOCSDIR=${SHAREDIR}/doc/elinks
     40 
     41 MANSCRIPT=sunman-stability
     42 source ${SRC}/tools/install.subr
     43 
     44 # SRCDIR is passed in from Makefile.sfw as environment variable
     45 
     46 # bin
     47 
     48 _install E ${SRCDIR}/src/elinks ${BINDIR}/elinks 555
     49 
     50 # man
     51 
     52 _install M ${SRCDIR}/doc/man/man1/elinks.1 ${MAN1DIR}/elinks.1 444
     53 _install M ${SRCDIR}/doc/man/man5/elinks.conf.5 ${MAN5DIR}/elinks.conf.5 444
     54 _install M ${SRCDIR}/doc/man/man5/elinkskeys.5 ${MAN5DIR}/elinkskeys.5 444
     55 
     56 # locale
     57 
     58 ELINKS_LOCALE_LIST=" \
     59 	be \
     60 	bg \
     61 	ca \
     62 	cs \
     63 	da \
     64 	de \
     65 	el \
     66 	es \
     67 	et \
     68 	fi \
     69 	fr \
     70 	gl \
     71 	hr \
     72 	hu \
     73 	id \
     74 	is \
     75 	it \
     76 	lt \
     77 	nb \
     78 	nl \
     79 	pl \
     80 	pt \
     81 	pt_BR \
     82 	ro \
     83 	ru \
     84 	sk \
     85 	sr \
     86 	sv \
     87 	tr \
     88 	uk"
     89 
     90 for i in ${ELINKS_LOCALE_LIST}
     91 do
     92   _install N ${SRCDIR}/po/${i}.gmo ${LOCALEDIR}/${i}/LC_MESSAGES/elinks.mo 644
     93 done
     94 
     95 # docs
     96 
     97 ELINKS_DOCS_LIST=" \
     98 	bittorrent.txt \
     99 	bookmarks.txt \
    100 	color-model.txt \
    101 	dev-intro.txt \
    102 	ecmascript.txt \
    103 	elinks.1.txt \
    104 	elinks.conf.5.txt \
    105 	elinkskeys.5.txt \
    106 	events.txt \
    107 	exmode.txt \
    108 	faq.txt \
    109 	feedback.txt \
    110 	hacking.txt \
    111 	installation.txt \
    112 	introduction.txt \
    113 	lua-scripting.txt \
    114 	mailcap.txt \
    115 	manual.txt \
    116 	marks.txt \
    117 	mime.txt \
    118 	remote.txt \
    119 	small.txt \
    120 	tabs.txt \
    121 	terminals.txt \
    122 	urlshortcuts.txt"
    123 
    124 for i in ${ELINKS_DOCS_LIST}
    125 do
    126   _install N ${SRCDIR}/doc/${i} ${DOCSDIR}/${i} 444
    127 done
    128 
    129 exit 0
    130