Changeset 52 for branches/2.04_berlios


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

mkrpm now handles release suffixes (mdk/mdv)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.04_berlios/tools/mkrpm

    r50 r52  
    1717
    1818rev=`$TOOLHOME/mksvnversion`
     19if [ -e /etc/mandriva-release ]; then
     20        suf=mdk
     21elif [ -e /etc/mandrake-release ]; then
     22        suf=mdk
     23else
     24        suf=""
     25fi
    1926
    2027if [ "$1" = "" ]; then
     
    3744    sed "s/^%define mrel..*/%define mrel    ${rev}/" mindi-${MINDI_VER}/mindi.spec > ${TOPDIR}/SPECS/mindi.spec
    3845    rm -f ${TMP}/mindi-*-root
    39     pkg="$pkg ${TOPDIR}/RPMS/${ARCH}/mindi-${MINDI_VER}-${rev}.${ARCH}.rpm"
     46    pkg="$pkg ${TOPDIR}/RPMS/${ARCH}/mindi-${MINDI_VER}-${rev}${suf}.${ARCH}.rpm"
    4047    # ATTENTION: This could be dangerous for your setup
    4148    opt="rm -rf /usr/share/mindi ;"
     
    5764    sed "s/^%define mrel..*/%define mrel    ${rev}/" mondo-${MONDO_VER}/mondo.spec > ${TOPDIR}/SPECS/mondo.spec
    5865    rm -f ${TMP}/mondo-*-root
    59     pkg="$pkg ${TOPDIR}/RPMS/${ARCH}/mondo-${MONDO_VER}-${rev}.${ARCH}.rpm"
     66    pkg="$pkg ${TOPDIR}/RPMS/${ARCH}/mondo-${MONDO_VER}-${rev}${suf}.${ARCH}.rpm"
    6067fi
    6168cd ${TOPDIR}/SPECS
Note: See TracChangeset for help on using the changeset viewer.