Changeset 573 for branches/stable


Ignore:
Timestamp:
May 24, 2006, 6:48:16 AM (13 years ago)
Author:
andree
Message:

Added detection of Debian including version to distro-env.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/tools/distro-env

    r572 r573  
    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"
Note: See TracChangeset for help on using the changeset viewer.