Changeset 556 in MondoRescue for branches/stable/tools/build2pkg


Ignore:
Timestamp:
May 19, 2006, 12:37:53 AM (18 years ago)
Author:
bcornec
Message:

mondo-doc should now generate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/tools/build2pkg

    r553 r556  
    5656
    5757    if [  _"$dtype" = _"rpm" ]; then
    58         pkg1="${TOPBUILDDIR}/RPMS/${ARCH}/$pv${suf}.${ARCH}.rpm"
     58        if [ _"$p" = _"mondo-doc" ]; then
     59            ar="noarch"
     60        else
     61            ar=$ARCH
     62        fi
     63        pkg1="${TOPBUILDDIR}/RPMS/${ar}/$pv${suf}.${ar}.rpm"
    5964        #rm -f $pkg1
    6065
     
    8186        fi
    8287        cd ..
     88    elif [  _"$dtype" = _"gentoo" ]; then
     89        echo "Gentoo"
     90        log=/tmp/$p-gentoo.log
     91        ln -sf $src .
     92        tar xfz $src $pv/distributions/$ddir/$pv-r$TAG.ebuild
     93
     94        ebuild $pv/distributions/$ddir/$pv-r$TAG.ebuild
     95        if [ $? != 0 ]; then
     96            cat $log
     97            status=-1
     98        fi
     99        rm -rf $pv
     100    else
     101        echo "Unknown"
    83102    fi
    84103done
     104echo "Packages handled : $pkg"
    85105
    86106if [ $status = 0 ]; then
    87107    if [  _"$dtype" = _"rpm" ]; then
    88         echo "Installing RPMS as root ($pkg)"
     108        echo "Installing RPMS as root"
    89109        su - -c "$opt rpm -Uvh --force $pkg"
    90110    fi
Note: See TracChangeset for help on using the changeset viewer.