Ignore:
Timestamp:
May 13, 2006, 8:52:38 PM (14 years ago)
Author:
bcornec
Message:

stable is now at same level as 2.0.8 (r538)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/tools/mkdeb

    r541 r543  
    2828    cd ${BASE}/svn
    2929    mkdir -p ${TOPDIR}/SOURCES
    30     sed "s/^%define mrel..*RRR/%define mrel ${REVISION}${suf}/" mindi-kernel-${MINDI_VER}/mindi-kernel.spec > ${TOPDIR}/SPECS/mindi-kernel.spec
    31     pkg="$pkg ${TOPDIR}/RPMS/${ARCH}/mindi-kernel-${MINDI_VER}-${REVISION}${suf}.${ARCH}.rpm"
     30    $TOOLHOME/mkspec ${MINDI_VER} mindi-kernel-${MINDI_VER}/mindi-kernel.spec > ${TOPDIR}/SPECS/mindi-kernel.spec
     31    chmod 644 ${TOPDIR}/SPECS/mindi-kernel.spec
     32    pkg1="${TOPDIR}/RPMS/${ARCH}/mindi-kernel-${MINDI_VER}-${REVISION}${suf}.${ARCH}.rpm"
     33    pkg="$pkg $pkg1"
     34    rm -f $pkg1
    3235fi
    3336if [ "`echo $c | grep -v kernel | grep mindi`" != "" ]; then
    3437    cd ${BASE}/svn
    35     if [ -f mindi-${MINDI_VER}/distributions/${ddir}/mindi.spec ]; then
    36         specfile=mindi-${MINDI_VER}/distributions/${ddir}/mindi.spec
    37     else
    38         specfile=mindi-${MINDI_VER}/distributions/common/mindi.spec
    39     fi
    40     sed -e "s/^%define mrel..*RRR/%define mrel  ${REVISION}${suf}/" -e "s/VVV/${MINDI_VER}/" $specfile > ${TOPDIR}/SPECS/mindi.spec
     38    $TOOLHOME/mkspec ${MINDI_VER} mindi-${MINDI_VER}/distributions/rpm/mindi.spec > ${TOPDIR}/SPECS/mindi.spec
     39    cat mindi-${MINDI_VER}/distributions/$dfam/changelog >> ${TOPDIR}/SPECS/mindi.spec
     40    chmod 644 ${TOPDIR}/SPECS/mindi.spec
    4141    rm -rf mindi-${MINDI_VER}/distributions
    4242    mkdir -p ${TOPDIR}/SOURCES
    4343
    44     pkg="$pkg ${TOPDIR}/RPMS/${ARCH}/mindi-${MINDI_VER}-${REVISION}${suf}.${ARCH}.rpm"
    45     # ATTENTION: This could be dangerous for your setup
    46     opt="rm -rf /usr/lib/mindi ;"
     44    pkg1="${TOPDIR}/RPMS/${ARCH}/mindi-${MINDI_VER}-${REVISION}${suf}.${ARCH}.rpm"
     45    pkg="$pkg $pkg1"
     46    rm -f $pkg1
    4747fi
    4848if [ "`echo $c | grep  mondo`" != "" ]; then
    4949    cd ${BASE}/svn
    50     if [ -f mondo-${MONDO_VER}/distributions/${ddir}/mondo.spec ]; then
    51         specfile=mondo-${MONDO_VER}/distributions/${ddir}/mondo.spec
    52     else
    53         specfile=mondo-${MONDO_VER}/distributions/common/mondo.spec
    54     fi
    55     sed -e "s/^%define mrel..*RRR/%define mrel  ${REVISION}${suf}/" -e "s/VVV/${MONDO_VER}/" $specfile > ${TOPDIR}/SPECS/mondo.spec
     50    $TOOLHOME/mkspec ${MONDO_VER} mondo-${MONDO_VER}/distributions/rpm/mondo.spec > ${TOPDIR}/SPECS/mondo.spec
     51    cat mondo-${MONDO_VER}/distributions/$dfam/changelog >> ${TOPDIR}/SPECS/mondo.spec
     52    chmod 644 ${TOPDIR}/SPECS/mondo.spec
    5653    rm -rf mondo-${MONDO_VER}/distributions
    5754
    58     pkg="$pkg ${TOPDIR}/RPMS/${ARCH}/mondo-${MONDO_VER}-${REVISION}${suf}.${ARCH}.rpm"
     55    pkg1="${TOPDIR}/RPMS/${ARCH}/mondo-${MONDO_VER}-${REVISION}${suf}.${ARCH}.rpm"
     56    pkg="$pkg $pkg1"
     57    rm -f $pkg1
    5958fi
    6059
    6160cd ${TOPDIR}/SPECS
    6261status=0
    63 if [ "`echo $c | grep kernel`" != "" ]; then
    64     echo "Generating mindi-kernel RPMS"
    65     log=/tmp/mindi-kernel-rpm.log
    66     rpmbuild -ba mindi-kernel.spec 2> $log 1> $log
    67     if [ $? != 0 ]; then
    68         cat $log
    69         status=-1
    70     fi
    71 fi
    72 if [ "`echo $c | grep -v kernel | grep mindi`" != "" ]; then
    73     echo "Generating mindi RPMS"
    74     log=/tmp/mindi-rpm.log
    75     rpmbuild -ba mindi.spec 2> $log 1> $log
    76     if [ $? != 0 ]; then
    77         cat $log
    78         status=-1
    79     fi
    80 fi
    81 if [ "`echo $c | grep mondo`" != "" ]; then
    82     echo "Generating mondo RPMS"
    83     log=/tmp/mondo-rpm.log
    84     rpmbuild -ba mondo.spec 2> $log 1> $log
     62for p in "$c"; do
     63    echo "Generating $p deb"
     64    log=/tmp/$p-deb.log
     65    #rpmbuild -ba $p.spec 2> $log 1> $log
    8566    if [ $? != 0 ]; then
    8667        cat $log
     
    8970fi
    9071if [ $status = 0 ]; then
    91     echo "Installing RPMS as root ($pkg)"
     72    echo "Installing deb as root ($pkg)"
    9273    su - -c "$opt rpm -Uvh --force $pkg"
    9374fi
Note: See TracChangeset for help on using the changeset viewer.