Changeset 236 for trunk/tools/rpm-env


Ignore:
Timestamp:
Dec 19, 2005, 7:31:56 PM (14 years ago)
Author:
bcornec
Message:

merge -r229:235 $SVN_M/branches/2.05

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/rpm-env

    r98 r236  
    5252    fi
    5353elif [ -e /etc/SuSE-release ]; then
    54     export ddir="suse"
    55     export dver=`cat /etc/SuSE-release | head -1 | awk '{print $3}'`
     54    grep -q Enterprise /etc/SuSE-release
     55    if [ $? -eq 0 ]; then
     56        export ddir="sles"
     57        export dver=`cat /etc/SuSE-release | head -1 | awk '{print $5}'`
     58    else
     59        export ddir="suse"
     60        export dver=`cat /etc/SuSE-release | head -1 | awk '{print $3}'`
     61    fi
    5662else
    5763    export dver=""
Note: See TracChangeset for help on using the changeset viewer.