Changeset 3143 in MondoRescue for branches/3.0/mindi/install.sh


Ignore:
Timestamp:
Jun 14, 2013, 6:06:09 AM (11 years ago)
Author:
Bruno Cornec
Message:

r5349@localhost: bruno | 2013-06-14 01:23:53 +0200

  • Adds pod content to the perl scripts used, and generate man pages frmo it as part of the install process. This also fixes rpmlint and deblint issues
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mindi/install.sh

    r2964 r3143  
    4040MINDIVER=PBVER
    4141MINDIREV=PBREV
     42VERSTR=${MINDIVER}-r${MINDIREV}
    4243ARCH=`/bin/uname -m`
    43 echo "mindi ${MINDIVER}-r${MINDIREV} will be installed under $local"
     44echo "mindi $VERSTR will be installed under $local"
    4445
    4546if [ _"$CACHEDIR" = _"" ]; then
     
    8081    install -m 644 $f $conf/deplist.d
    8182done
    82 for f in mindi-bkphw mindi-get-perl-modules parted2fdisk.pl; do
    83     install -m 755 $f $local/sbin
    84 done
    8583
    8684# Substitute variables for mindi
    8785sed -e "s~^MINDI_PREFIX=XXX~MINDI_PREFIX=$sublocal~" -e "s~^MINDI_CONF=YYY~MINDI_CONF=$subconf~" -e "s~^MINDI_LIB=LLL~MINDI_LIB=$sublocallib~" mindi > $local/sbin/mindi
    88 chmod 755 $local/sbin/mindi $local/sbin/mindi-bkphw
     86chmod 755 $local/sbin/mindi
     87install -m 644 mindi.8 $MANDIR
    8988
    90 install -m 644 mindi.8 $MANDIR
    91 #install -m 644 ChangeLog COPYING README README.busybox README.ia64 README.pxe TODO INSTALL svn.log $DOCDIR
     89# Manage perl script man pages
     90for s in mindi-bkphw mindi-get-perl-modules parted2fdisk.pl; do
     91    install -m 755 $s $local/sbin
     92    pod2man -c "$s a MondoRescue tool" --section=8 --release="$VERSTR" $local/sbin/$s > $s.8
     93    install -m 644 $s.8 $MANDIR
     94    # Generate the list of perl modules needed at restore time for mindi
     95    cat > $conf/perl-scripts << EOF
     96$sublocal/sbin/$s
     97EOF
     98done
     99(cd $MANDIR ; ln -s parted2fdisk.pl.8 parted2fdisk.9)
    92100
    93101if [ "_$PREFIX" = "_" ] && [ ! -f $locallib/mindi/rootfs/bin/busybox ]; then
     
    101109else
    102110    # FHS requires fdisk under /sbin
    103     (cd $local/sbin && ln -sf /sbin/fdisk parted2fdisk)
     111    (cd $local/sbin && ln -sf ../../sbin/fdisk parted2fdisk)
    104112    echo "Symlinking fdisk to parted2fdisk"
    105113    ( cd $locallib/mindi/rootfs/sbin && ln -sf fdisk parted2fdisk)
     
    114122fi
    115123
    116 # Generate the list of perl modules needed at restore time for mindi
    117 cat > $conf/perl-scripts << EOF
    118 $sublocal/sbin/mindi-get-perl-modules
    119 $sublocal/sbin/mindi-bkphw
    120 $sublocal/sbin/parted2fdisk.pl
    121 EOF
    122 
    123124exit 0
Note: See TracChangeset for help on using the changeset viewer.