Home | History | Annotate | Download | only in lablgtk
      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-sfw	1.1	08/11/04 SMI"
     26 #
     27 
     28 
     29 # stop at first error
     30 set -o errexit
     31 
     32 PREFIX=${ROOT}/usr
     33 BINDIR=${PREFIX}/bin
     34 LIBDIR=${PREFIX}/lib/ocaml
     35 SHAREDIR=${PREFIX}/share
     36 MAN1DIR=${SHAREDIR}/man/man1
     37 
     38 source ${SRC}/tools/install.subr
     39 
     40 cd ${BINDIR}
     41 perl -pi -e "s|${ROOT}||" lablgtk2
     42 for i in gdk-pixbuf-mlsource \
     43 	lablgladecc2 \
     44 	lablgtk2
     45 do
     46 	chmod 555 ${i}
     47 done
     48 for i in ${LIBDIR}/stublibs ${LIBDIR}/lablgtk2
     49 do 
     50 	chmod 755 ${i}
     51 done
     52 
     53 cd ${LIBDIR}/stublibs
     54 for i in \
     55 	dlllablgtksourceview.so \
     56 	dlllablrsvg.so \
     57 	dlllablpanel.so \
     58 	dlllablgnomeui.so \
     59 	dlllablgnomecanvas.so \
     60 	dlllablglade2.so \
     61 	dlllablgtk2.so
     62 do 
     63 	chmod 555 ${i}
     64 done
     65 
     66 cd ${LIBDIR}/lablgtk2
     67 
     68 find ${LIBDIR}/lablgtk2 -type f -exec chmod 444 {} \;
     69 
     70 for i in propcc varcc
     71 do
     72 	chmod 555 ${i}
     73 done
     74 
     75 exit 0
     76 
     77