Ignore:
Timestamp:
Feb 14, 2006, 11:36:15 PM (14 years ago)
Author:
bcornec
Message:

RPMs are now made with a .spec containing m4 macros expanded with tools/mkrpm
this allows for a simpler spec file at the end,
which should be suited for at least Mandriva official packages.
Added a new mkspec tool which does the expansion
This way of dealing with distributions will be used is some other areas in the future

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/tools/mkcommon

    r339 r388  
    2222    rm -fr mindi-kernel-${MINDI_VER}
    2323    svn export ${VER}/mindi-kernel mindi-kernel-${MINDI_VER}
    24     #cp -a ${VER}/mindi-kernel mindi-kernel-${MINDI_VER}
    25     #find mindi-kernel-${MINDI_VER} -type d -name .svn | xargs rm -rf
    26     #find mindi-kernel-${MINDI_VER} -type f -name '.*.swp' | xargs rm -rf
    27     #find mindi-kernel-${MINDI_VER} -type f -name '*~' | xargs rm -rf
    2824    mkdir -p ${TOPDIR}/SOURCES
    2925
     
    3733    rm -fr mindi-${MINDI_VER}
    3834    svn export ${VER}/mindi mindi-${MINDI_VER}
    39     #cp -a ${VER}/mindi mindi-${MINDI_VER}
    4035    cp -a /tmp/mondorescue-svn.log mindi-${MINDI_VER}/svn.log
    4136    echo "$REVISION" > mindi-${MINDI_VER}/REVISION
    42     #find mindi-${MINDI_VER} -type d -name .svn | xargs rm -rf
    43     #find mindi-${MINDI_VER} -type f -name '.*.swp' | xargs rm -rf
    44     #find mindi-${MINDI_VER} -type f -name '*~' | xargs rm -rf
    4537    rm -f mindi-${MINDI_VER}/rootfs/sbin/parted2fdisk-ia64
    46     #rm -f mindi-${MINDI_VER}/parted2fdisk mindi-${MINDI_VER}/parted2fdisk.c mindi-${MINDI_VER}/rootfs/sbin/parted2fdisk-ia64
    4738
    4839    echo "Creating mindi tar files"
     
    5647    rm -rf mondo-${MONDO_VER}
    5748    svn export ${VER}/mondo mondo-${MONDO_VER}
    58     #cp -a ${VER}/mondo mondo-${MONDO_VER}
    5949    cp -a /tmp/mondorescue-svn.log mondo-${MONDO_VER}/svn.log
    6050    echo "$REVISION" > mondo-${MONDO_VER}/REVISION
     
    6353    cd documentation-${MONDO_VER}
    6454    make install INSTALLDIR=../mondo-${MONDO_VER}/mondo/docs/en
     55    if [ $? != 0 ]; then
     56        exit -1
     57    fi
    6558    cd ../mondo-${MONDO_VER}
    6659    echo "Bootstraping mondo ... "
    6760    ./bootstrap
    68     #find . -type d -name .svn | xargs rm -rf
    69     #find . -type f -name '.*.swp' | xargs rm -rf
    70     #find . -type f -name '*~' | xargs rm -rf
    7161    cd ..
    7262
Note: See TracChangeset for help on using the changeset viewer.