Ignore:
Timestamp:
May 8, 2006, 5:31:14 PM (14 years ago)
Author:
bcornec
Message:

Build process reviewed once more :
gentoo integration
slackware integration
mkqemu should only work with tar files, and not SVN (ease VM build and time in build process)
To be continued

DOES NOT WORK AT THE MOMENT

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/tools/mkrpm

    r424 r530  
    1818
    1919if [ "$1" = "" ]; then
    20     c="mindi mondo"
     20    c="mondo-doc mindi mondo"
    2121else
    22     c=$1
     22    if [ "$1" = "all" ]; then
     23        c="mindi-kernel mondo-doc mindi mondo"
     24    else
     25        c=$1
     26    fi
    2327fi
    2428
     
    4852    opt="rm -rf /usr/lib/mindi ;"
    4953fi
    50 if [ "`echo $c | grep  mondo`" != "" ]; then
     54if [ "`echo $c | grep mondo-doc`" != "" ]; then
     55    cd ${BASE}/svn
     56    $TOOLHOME/mkspec ${MONDO_VER} mondo-${MONDO_VER}/distributions/rpm/mondo-doc.spec > ${TOPDIR}/SPECS/mondo-doc.spec
     57    cat mondo-${MONDO_VER}/distributions/$dfam/changelog >> ${TOPDIR}/SPECS/mondo-doc.spec
     58    chmod 644 ${TOPDIR}/SPECS/mondo-doc.spec
     59
     60    pkg1="${TOPDIR}/RPMS/${ARCH}/mondo-doc-${MONDO_VER}-${REVISION}${suf}.${ARCH}.rpm"
     61    pkg="$pkg $pkg1"
     62    rm -f $pkg1
     63fi
     64
     65if [ "`echo $c | grep -v doc | grep mondo`" != "" ]; then
    5166    cd ${BASE}/svn
    5267    $TOOLHOME/mkspec ${MONDO_VER} mondo-${MONDO_VER}/distributions/rpm/mondo.spec > ${TOPDIR}/SPECS/mondo.spec
     
    6277cd ${TOPDIR}/SPECS
    6378status=0
    64 if [ "`echo $c | grep kernel`" != "" ]; then
    65     echo "Generating mindi-kernel RPMS"
    66     log=/tmp/mindi-kernel-rpm.log
    67     rpmbuild -ba mindi-kernel.spec 2> $log 1> $log
    68     if [ $? != 0 ]; then
    69         cat $log
    70         status=-1
    71     fi
    72 fi
    73 if [ "`echo $c | grep -v kernel | grep mindi`" != "" ]; then
    74     echo "Generating mindi RPMS"
    75     log=/tmp/mindi-rpm.log
    76     rpmbuild -ba mindi.spec 2> $log 1> $log
    77     if [ $? != 0 ]; then
    78         cat $log
    79         status=-1
    80     fi
    81 fi
    82 if [ "`echo $c | grep mondo`" != "" ]; then
    83     echo "Generating mondo RPMS"
    84     log=/tmp/mondo-rpm.log
    85     rpmbuild -ba mondo.spec 2> $log 1> $log
     79
     80for p in $c; do
     81    echo "Generating $p RPMS"
     82    log=/tmp/$p-rpm.log
     83    rpmbuild -ba $p.spec 2> $log 1> $log
    8684    if [ $? != 0 ]; then
    8785        cat $log
Note: See TracChangeset for help on using the changeset viewer.