Changeset 1040


Ignore:
Timestamp:
Jan 7, 2007, 12:20:30 AM (12 years ago)
Author:
bruno
Message:

FreeBSD fixes

Location:
branches/stable/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/tools/build2pkg

    r1039 r1040  
    125125        export pkg="$pkg $p-${PVER}.deb"
    126126        # Et voila !
    127     elif [  _"$dtype" = _"freebsd" ]; then
     127    elif [  _"$dtype" = _"port" ]; then
     128        cd $TOPBUILDDIR
     129        tar xfz $src
     130        cd ${p}-${PVER}
     131        mv distributions/${ddir}-$dver/* $TOPBUILDDIR
     132        cd ..
     133        rm -rf ${p}-${PVER}
     134        make DISTDIR=$TOPBUILDDIR
    128135    elif [  _"$dfam" = _"slackware" ]; then
    129136        mkdir -p $TOPBUILDDIR/build-${p}/install
  • branches/stable/tools/distro-env

    r1039 r1040  
    6161            export dver = "sid"
    6262        fi
    63     elif [ -e /etc/motd && grep -q FreeBSD /etc/motd ]; then
    64         export ddir="freebsd"
    65         export dver=`awk '{print $2}' /etc/motd | cut -d- -f1`
     63    elif [ -e /etc/motd ]; then
     64        grep -q FreeBSD /etc/motd
     65        if [ $? -eq 0 ]; then
     66            export ddir="freebsd"
     67            export dver=`awk '{print $2}' /etc/motd | cut -d- -f1`
     68        else
     69            export ddir="unknown"
     70            export dver=""
     71        fi
    6672    else
    6773        export ddir="unknown"
     
    145151elif [ _"$dtype" = _"deb" ]; then
    146152    mkdir -p ${TOPBUILDDIR}
     153elif [ _"$dtype" = _"port" ]; then
     154    mkdir -p ${TOPBUILDDIR}
    147155elif [ _"$dfam" = _"slackware" ]; then
    148156    mkdir -p ${TOPBUILDDIR}
Note: See TracChangeset for help on using the changeset viewer.