Changeset 244 for trunk/mindi/install.sh


Ignore:
Timestamp:
Dec 20, 2005, 10:38:54 AM (15 years ago)
Author:
bcornec
Message:

merge -r239:243 $SVN_M/branches/2.05

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mindi/install.sh

    r238 r244  
    2828
    2929MINDIVER=`cat VERSION`
    30 echo "mindi $MINDIVER will be installed under $local"
     30MINDIREV=`cat REVISION`
     31echo "mindi ${MINDIVER}-r${MINDIREV} will be installed under $local"
     32
     33if [ "_$DOCDIR" = "_" ]; then
     34    DOCDIR=$local/share/doc/mindi-$MINDIVER
     35fi
    3136
    3237echo "Creating target directories ..."
    33 install -m 755 -d $conf $local/lib/mindi $local/share/man/man8 $local/sbin $local/share/doc/mindi-$MINDIVER
     38install -m 755 -d $conf $local/lib/mindi $local/share/man/man8 $local/sbin $DOCDIR
    3439
    3540echo "Copying files ..."
     
    4348
    4449if [ "$RPMBUILDMINDI" = "true" ]; then
    45     sed -e "s~^MINDI_PREFIX=XXX~MINDI_PREFIX=/usr~" -e "s~^MINDI_CONF=YYY~MINDI_CONF=/etc/mindi~" mindi > $local/sbin/mindi
     50    sed -e "s~^MINDI_PREFIX=XXX~MINDI_PREFIX=/usr~" -e "s~^MINDI_CONF=YYY~MINDI_CONF=/etc/mindi~" -e "s~^MINDI_VER=VVV~MINDI_VER=$MINDIVER~" -e "s~^MINDI_REV=RRR~MINDI_REV=$MINDIREV~" mindi > $local/sbin/mindi
    4651else
    47     sed -e "s~^MINDI_PREFIX=XXX~MINDI_PREFIX=$local~" -e "s~^MINDI_CONF=YYY~MINDI_CONF=$conf~" mindi > $local/sbin/mindi
     52    sed -e "s~^MINDI_PREFIX=XXX~MINDI_PREFIX=$local~" -e "s~^MINDI_CONF=YYY~MINDI_CONF=$conf~" -e "s~^MINDI_VER=VVV~MINDI_VER=$MINDIVER~" -e "s~^MINDI_REV=RRR~MINDI_REV=$MINDIREV~" mindi > $local/sbin/mindi
    4853fi
    4954chmod 755 $local/sbin/mindi
     
    5156
    5257install -m 644 mindi.8 $local/share/man/man8
    53 install -m 644 CHANGES COPYING README README.busybox README.ia64 README.pxe TODO INSTALL $local/share/doc/mindi-$MINDIVER
     58install -m 644 CHANGES COPYING README README.busybox README.ia64 README.pxe TODO INSTALL $DOCDIR
    5459
    5560ARCH=`/bin/arch`
     
    98103
    99104if [ "$RPMBUILDMINDI" != "true" ]; then
    100     chown -R root:root $local/lib/mindi $conf/mindi $conf $local/share/doc/mindi-$MINDIVER
     105    chown -R root:root $local/lib/mindi $conf/mindi $conf $DOCDIR
    101106    chown root:root $local/sbin/mindi $local/share/man/man8/mindi.8 $local/sbin/analyze-my-lvm $local/sbin/parted2fdisk.pl
    102107    if [ "$ARCH" = "ia64" ] ; then
Note: See TracChangeset for help on using the changeset viewer.