source: branches/stable/tools/gentoo-env @ 543

Last change on this file since 543 was 543, checked in by bcornec, 14 years ago

stable is now at same level as 2.0.8 (r538)

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 635 bytes
RevLine 
[20]1#!/bin/bash
2#
[530]3# Creates Gentoo environment from SVN repository
[33]4#
5# $Id: gentoo-env 543 2006-05-13 18:52:38Z bcornec $
6#
[20]7
[319]8dname=`dirname $0`
9prem=`echo $dname |cut -c1`
10if [ ${prem} == "/" ]; then
11        export TOOLHOME=$dname
12else
13    export TOOLHOME=${PWD}/$dname
14fi
[20]15
[319]16. $TOOLHOME/common-env
17
[530]18#export ARCH=`rpm --showrc | egrep "^build arch" | awk '{print $4}'`
[319]19
[20]20# Should not be modified below
21export pkg=""
22export opt=""
[530]23export ARCH=""
[20]24
[530]25export TOPDIR=${BASE}/ebuild
[318]26mkdir -p ${TOPDIR}
[20]27
[530]28export dfam="gentoo"
29export ddir="gentoo"
30export dver=`awk '{print $4}' /etc/gentoo-release`
31export suf=".`echo $dver | sed 's/\.//'`"
[60]32
33if [ _"$suf" = _"" ]; then
[313]34    export suf=".${ddir}${dver}"
[60]35fi
Note: See TracBrowser for help on using the repository browser.