Changeset 219 for trunk/tools/mkrpm


Ignore:
Timestamp:
Dec 15, 2005, 2:54:19 AM (13 years ago)
Author:
bcornec
Message:

merge -r176:218 $SVN_M/branches/2.05

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/mkrpm

    r146 r219  
    2424    c=$1
    2525fi
    26 if [ "`echo $c | grep mindi`" != "" ]; then
     26if [ "`echo $c | grep mindi-kernel`" != "" ]; then
     27    cd ${BASE}/svn
     28    echo "Management of mindi-kernel ${MINDI_VER}"
     29    rm -fr mindi-kernel-${MINDI_VER}
     30    cp -a ${VER}/mindi-kernel mindi-kernel-${MINDI_VER}
     31    find mindi-kernel-${MINDI_VER} -type d -name .svn | xargs rm -rf
     32    find mindi-kernel-${MINDI_VER} -type f -name '.*.swp' | xargs rm -rf
     33    find mindi-kernel-${MINDI_VER} -type f -name '*~' | xargs rm -rf
     34    mkdir -p ${TOPDIR}/SOURCES
     35    tar cvfhz ${TOPDIR}/SOURCES/mindi-kernel-${MINDI_VER}.tgz mindi-kernel-${MINDI_VER}
     36    tar cvfhj ${TOPDIR}/SOURCES/mindi-kernel-${MINDI_VER}.tar.bz2 mindi-kernel-${MINDI_VER}
     37    sed "s/^%define mrel..*/%define mrel    ${rev}.${suf}/" mindi-kernel-${MINDI_VER}/mindi-kernel.spec > ${TOPDIR}/SPECS/mindi-kernel.spec
     38    rm -f ${TMP}/mindi-kernel*-root
     39    pkg="$pkg ${TOPDIR}/RPMS/${ARCH}/mindi-kernel-${MINDI_VER}-${rev}.${suf}.${ARCH}.rpm"
     40fi
     41if [ "`echo $c | grep -v kernel | grep mindi`" != "" ]; then
    2742    cd ${BASE}/svn
    2843    echo "Management of mindi ${MINDI_VER}"
     
    4055    pkg="$pkg ${TOPDIR}/RPMS/${ARCH}/mindi-${MINDI_VER}-${rev}.${suf}.${ARCH}.rpm"
    4156    # ATTENTION: This could be dangerous for your setup
    42     opt="rm -rf /usr/share/mindi ;"
     57    opt="rm -rf /usr/lib/mindi ;"
    4358fi
    4459if [ "`echo $c | grep  mondo`" != "" ]; then
     
    6176fi
    6277cd ${TOPDIR}/SPECS
    63 if [ "`echo $c | grep mindi`" != "" ]; then
     78if [ "`echo $c | grep kernel`" != "" ]; then
     79    rpmbuild -ba mindi-kernel.spec
     80fi
     81if [ "`echo $c | grep -v kernel | grep mindi`" != "" ]; then
    6482    rpmbuild -ba mindi.spec
    6583fi
    6684if [ "`echo $c | grep mondo`" != "" ]; then
    67     rpmbuild -ba --without xmondo mondo.spec
     85    rpmbuild -ba mondo.spec
    6886fi
    6987su - -c "$opt rpm -Uvh --force $pkg"
Note: See TracChangeset for help on using the changeset viewer.