Changeset 50 in MondoRescue for branches/2.04_berlios/tools/rpm-env


Ignore:
Timestamp:
Oct 8, 2005, 12:43:16 AM (14 years ago)
Author:
bcornec
Message:

mindi.spec sharable between distributions (natively OK for mdk/mdv)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.04_berlios/tools/rpm-env

    r46 r50  
    2222mkdir -p ${TMP}
    2323if [ -f ${HOME}/.rpmmacros ]; then
    24     export TOPDIR=`grep _topdir ${HOME}/.rpmmacros | awk '{print $2}'`
     24    export TOPDIR=`egrep '^%_topdir' ${HOME}/.rpmmacros | awk '{print $2}'`
    2525else
    2626    export TOPDIR=${BASE}/RPMS
     
    2929mkdir -p RPMS SRPMS SPECS SOURCES BUILD
    3030
    31 export MINDI_VER=`cat ${BASE}/svn/${VER}/mindi/mindi.spec | egrep '^Version:' | cut -d: -f2 | sed "s/[  ]*//"`
    32 export MONDO_VER=`cat ${BASE}/svn/${VER}/mondo/mondo.spec | egrep '^Version:' | cut -d: -f2 | sed "s/[  ]*//"`
     31export MINDI_VER=`cat ${BASE}/svn/${VER}/mindi/mindi.spec | egrep '^%define version' | awk '{print $3}' | sed "s/[  ]*//"`
     32export MONDO_VER=`cat ${BASE}/svn/${VER}/mondo/mondo.spec | egrep '^%define version' | awk '{print $3}' | sed "s/[  ]*//"`
Note: See TracChangeset for help on using the changeset viewer.