Changeset 588 for trunk/tools/distro-env


Ignore:
Timestamp:
May 29, 2006, 11:47:20 AM (13 years ago)
Author:
bcornec
Message:

merge -r 560:587 $SVN_M/branches/stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/distro-env

    r561 r588  
    4343        export ddir="gentoo"
    4444        export dver=`awk '{print $5}' /etc/gentoo-release | cut -d. -f1-2`
     45    elif [ -e /etc/debian_version ]; then
     46        export ddir="debian"
     47        export dver=`cat /etc/debian_version`
     48        # Debian assigns release names only once a release actually happens.
     49        # Debian does not distinguish between testing and unstable because
     50        # unstable today is what testing will be in about ten days time. So,
     51        # in case we encounter "tesing/unstable", we assume unstable, i.e. sid.
     52        # Note that for released versions, the numeric version will be contained
     53        # in debian_version, e.g. on a sarge system, the value will be '3.1'.
     54        if [ $dver = "testing/unstable" ]; then
     55            export dver = "sid"
     56        fi
    4557    else
    4658        export ddir="unknown"
     
    112124    fi
    113125    mkdir -p ${TOPBUILDDIR}/{RPMS,SRPMS,SPECS,SOURCES,BUILD}
     126elif [ _"$dtype" = _"ebuild" ]; then
     127    export TOPBUILDDIR=${BASE}/build
     128    mkdir -p ${TOPBUILDDIR}/portage
    114129fi
Note: See TracChangeset for help on using the changeset viewer.