Ignore:
Timestamp:
May 31, 2007, 10:10:22 AM (13 years ago)
Author:
Bruno Cornec
Message:

Ubuntu support added for build process

File:
1 edited

Legend:

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

    r1076 r1474  
    6464            export dver = "sid"
    6565        fi
     66        if [ -e /etc/lsb-release ]; then
     67            grep -qi ubuntu /etc/lsb-release
     68            if  [ $? -eq 0 ]; then
     69                export ddir="ubuntu"
     70                export dver=`cat /etc/lsb-release | grep DISTRIB_RELEASE | cut -d= -f2`
     71            fi
     72        fi
    6673    elif [ -e /etc/motd ]; then
    6774        head -1 /etc/motd | grep -q FreeBSD
     
    8289# Generate all other parameters
    8390#
    84 if [ $ddir = "debian" ]; then
     91if [ $ddir = "debian" -o $ddir = "ubuntu" ]; then
    8592    dfam="debian"
    8693    dtype="deb"
    87     suf=".${dfam}${dver}"
     94    suf=".${ddir}${dver}"
    8895elif [ $ddir = "gentoo" ]; then
    8996    dfam="gentoo"
Note: See TracChangeset for help on using the changeset viewer.