Ignore:
Timestamp:
Jan 6, 2007, 6:11:34 PM (14 years ago)
Author:
Bruno Cornec
Message:

Work on FreeBSD

File:
1 edited

Legend:

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

    r1024 r1038  
    6464            export dver = "sid"
    6565        fi
     66    elif [ -e /etc/motd && grep -q FreeBSD /etc/motd ]; then
     67        export ddir="freebsd"
     68        export dver=`awk '{print $2}' /etc/motd | cut -d- -f1`
    6669    else
    6770        export ddir="unknown"
     
    112115    dtype="rpm"
    113116    suf=".`echo $dver | sed 's/\.//'`mdv"
     117elif [ $ddir = "freebsd" ]; then
     118    dfam="freebsd"
     119    dtype="port"
     120    suf=".`echo $dver | sed 's/\.//'`fbsd"
    114121else
    115122    dfam="unknown"
Note: See TracChangeset for help on using the changeset viewer.