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 # Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23 # Use is subject to license terms. 24 # 25 #ident "@(#)install-jruby 1.1 08/09/25 SMI" 26 27 # exit on first error 28 set -o errexit 29 30 umask 0022 31 32 JRUBY_VER=$1 33 34 # install JRuby 35 USR_JRUBY=${ROOT}/usr/jruby/${JRUBY_VER} 36 cp -r jruby-${JRUBY_VER}/bin ${USR_JRUBY} 37 cp -r jruby-${JRUBY_VER}/docs ${USR_JRUBY} 38 cp -r jruby-${JRUBY_VER}/lib ${USR_JRUBY} 39 cp -r jruby-${JRUBY_VER}/samples ${USR_JRUBY} 40 cp -r jruby-${JRUBY_VER}/share ${USR_JRUBY} 41 cp jruby-${JRUBY_VER}/COPYING ${USR_JRUBY} 42 cp jruby-${JRUBY_VER}/README ${USR_JRUBY} 43 cp jruby-${JRUBY_VER}/COPYING.CPL ${USR_JRUBY} 44 cp jruby-${JRUBY_VER}/COPYING.GPL ${USR_JRUBY} 45 cp jruby-${JRUBY_VER}/COPYING.LGPL ${USR_JRUBY} 46 47 # remove unwanted files 48 rm ${USR_JRUBY}/bin/*.bat ${USR_JRUBY}/docs/rdocs.tar.gz 49 50 source ${SRC}/tools/install.subr 51 52 # install man pages 53 # (manpages are special "sun" versions with corrected section 54 # references, etc. These are the ones we actually install. 55 # Note to maintainers - if the package revs, you need to re-create 56 # new sun versions of the manpages.) 57 MANSCRIPT=$(pwd)/sunman-stability 58 MAN_PAGES=${ROOT}/usr/share/man/man1 59 _install M $(pwd)/src/jruby.1 ${MAN_PAGES}/jruby.1 644 60 61 # The jruby executable script is soft linked in /usr/bin with its version information 62 # For example: 63 # /usr/bin/jruby --> ../jruby/1.1.3/bin/jruby 64 cd ${ROOT}/usr/bin 65 _install L ../jruby/${JRUBY_VER}/bin/jruby ${ROOT}/usr/bin/jruby 66 67 exit 0 68 69