Changeset 394 for trunk/tools/rpm-env


Ignore:
Timestamp:
Feb 15, 2006, 11:44:31 AM (14 years ago)
Author:
bcornec
Message:

merge -r387:391 $SVN_M/branches/stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/rpm-env

    r357 r394  
    3333
    3434if [ -e /etc/mandriva-release ]; then
     35    export dfam="mandriva"
    3536    export ddir="mandriva"
    3637    export dver=`awk '{print $4}' /etc/mandriva-release`
    3738    export suf=".`echo $dver | sed 's/\.//'`mdk"
    3839elif [ -e /etc/mandrake-release ]; then
     40    export dfam="mandriva"
    3941    export ddir="mandrake"
    4042    export dver=`awk '{print $3}' /etc/mandrake-release`
     
    4345    grep -q Enterprise /etc/redhat-release
    4446    if [ $? -eq 0 ]; then
     47        export dfam="redhat"
    4548        export ddir="rhel"
    4649        export dver=`awk '{print $7}' /etc/redhat-release`
    4750    elif grep -q Fedora /etc/redhat-release ; then
     51        export dfam="redhat"
    4852        export ddir="fedora"
    4953        export dver=`awk '{print $4}' /etc/redhat-release`
    5054        export suf=".fc${dver}"
    5155    else
     56        export dfam="redhat"
    5257        export ddir="redhat"
    5358        dver=`awk '{print $5}' /etc/redhat-release`
     
    5863    grep -q Enterprise /etc/SuSE-release
    5964    if [ $? -eq 0 ]; then
     65        export dfam="suse"
    6066        export ddir="sles"
    6167        export dver=`head -1 /etc/SuSE-release | awk '{print $5}'`
    6268    else
     69        export dfam="suse"
    6370        export ddir="suse"
    6471        export dver=`head -1 /etc/SuSE-release | awk '{print $3}'`
    6572    fi
    6673else
     74    export dfam="generic"
    6775    export dver=""
    6876    export ddir="generic"
Note: See TracChangeset for help on using the changeset viewer.