Sdiff 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 2007 Sun Microsystems, Inc.  All rights reserved. 
 27 # Use is subject to license terms.
 28 #
 29 # install slrn's objects in the proto area, since it would really
 30 # like to install locally, but that doesn't scale.
 31 #
 32 
 33 VERS=0.9.8.1pl1 
 34 SLRNVERS=slrn-${VERS}
 35 PREFIX=${ROOT}/opt/sfw
 36 BINDIR=${PREFIX}/bin
 37 MAN1DIR=${PREFIX}/man/man1
 38 SHAREDIR=${PREFIX}/share/slrn
 39 ETCDIR=${PREFIX}/etc/slrn
 40 DOCDIR=${PREFIX}/doc
 41 SLRNDOCDIR=${DOCDIR}/slrn
 42 SLRNPULLDOCDIR=${DOCDIR}/slrn/slrnpull
 43 
 44 cd ${SLRNVERS}
 45 
 46 for i in ${BINDIR} ${SHAREDIR} ${DOCDIR} ${SLRNDOCDIR} ${SLRNPULLDOCDIR} \
 47         ${ETCDIR}
 48 do
 49         mkdir -p ${i}
 50         chmod 755 ${i}
 51 done
 52 
 53 for i in ${MAN1DIR}


89 90 cd slrnpull 91 for i in `ls -1` 92 do 93 rm -f ${SLRNPULLDOCDIR}/$i 94 cp $i ${SLRNPULLDOCDIR}/$i 95 chmod 444 ${SLRNPULLDOCDIR}/$i 96 done 97 cd ../.. 98 99 cd macros 100 for i in `ls -1` 101 do 102 rm -f ${SHAREDIR}/$i 103 cp $i ${SHAREDIR}/$i 104 chmod 644 ${SHAREDIR}/$i 105 done 106 cd .. 107 108 109 cd src 110 for i in slrn slrnpull 111 do 112 rm -f ${BINDIR}/$i 113 cp $i ${BINDIR}/$i 114 strip ${BINDIR}/$i 115 chmod 555 ${BINDIR}/$i 116 done 117 cd ../.. 118 119 exit 0
  1 #!/bin/sh
  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 

 25 #
 26 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved. 
 27 # Use is subject to license terms.
 28 #
 29 # install slrn's objects in the proto area, since it would really
 30 # like to install locally, but that doesn't scale.
 31 #
 32 
 33 VERS=0.9.9 
 34 SLRNVERS=slrn-${VERS}
 35 PREFIX=${ROOT}/opt/sfw
 36 BINDIR=${PREFIX}/bin
 37 MAN1DIR=${PREFIX}/man/man1
 38 SHAREDIR=${PREFIX}/share/slrn
 39 ETCDIR=${PREFIX}/etc/slrn
 40 DOCDIR=${PREFIX}/doc
 41 SLRNDOCDIR=${DOCDIR}/slrn
 42 SLRNPULLDOCDIR=${DOCDIR}/slrn/slrnpull
 43 
 44 cd ${SLRNVERS}
 45 
 46 for i in ${BINDIR} ${SHAREDIR} ${DOCDIR} ${SLRNDOCDIR} ${SLRNPULLDOCDIR} \
 47         ${ETCDIR}
 48 do
 49         mkdir -p ${i}
 50         chmod 755 ${i}
 51 done
 52 
 53 for i in ${MAN1DIR}


89 90 cd slrnpull 91 for i in `ls -1` 92 do 93 rm -f ${SLRNPULLDOCDIR}/$i 94 cp $i ${SLRNPULLDOCDIR}/$i 95 chmod 444 ${SLRNPULLDOCDIR}/$i 96 done 97 cd ../.. 98 99 cd macros 100 for i in `ls -1` 101 do 102 rm -f ${SHAREDIR}/$i 103 cp $i ${SHAREDIR}/$i 104 chmod 644 ${SHAREDIR}/$i 105 done 106 cd .. 107 108 109 cd src/objs 110 for i in slrn slrnpull 111 do 112 rm -f ${BINDIR}/$i 113 cp $i ${BINDIR}/$i 114 strip ${BINDIR}/$i 115 chmod 555 ${BINDIR}/$i 116 done 117 cd ../.. 118 119 exit 0