Ignore:
Timestamp:
Feb 14, 2006, 11:36:15 PM (13 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/rpm-env

    r356 r388  
    3232
    3333if [ -e /etc/mandriva-release ]; then
     34    export dfam="mandriva"
    3435    export ddir="mandriva"
    3536    export dver=`awk '{print $4}' /etc/mandriva-release`
    3637    export suf=".`echo $dver | sed 's/\.//'`mdk"
    3738elif [ -e /etc/mandrake-release ]; then
     39    export dfam="mandriva"
    3840    export ddir="mandrake"
    3941    export dver=`awk '{print $3}' /etc/mandrake-release`
     
    4244    grep -q Enterprise /etc/redhat-release
    4345    if [ $? -eq 0 ]; then
     46        export dfam="redhat"
    4447        export ddir="rhel"
    4548        export dver=`awk '{print $7}' /etc/redhat-release`
    4649    elif grep -q Fedora /etc/redhat-release ; then
     50        export dfam="redhat"
    4751        export ddir="fedora"
    4852        export dver=`awk '{print $4}' /etc/redhat-release`
    4953        export suf=".fc${dver}"
    5054    else
     55        export dfam="redhat"
    5156        export ddir="redhat"
    5257        dver=`awk '{print $5}' /etc/redhat-release`
     
    5762    grep -q Enterprise /etc/SuSE-release
    5863    if [ $? -eq 0 ]; then
     64        export dfam="suse"
    5965        export ddir="sles"
    6066        export dver=`head -1 /etc/SuSE-release | awk '{print $5}'`
    6167    else
     68        export dfam="suse"
    6269        export ddir="suse"
    6370        export dver=`head -1 /etc/SuSE-release | awk '{print $3}'`
    6471    fi
    6572else
     73    export dfam="generic"
    6674    export dver=""
    6775    export ddir="generic"
Note: See TracChangeset for help on using the changeset viewer.