Last change
on this file since 1730 was 537, checked in by bcornec, 18 years ago |
merge -r 526:534 $SVN_M/branches/stable
|
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Id
|
File size:
635 bytes
|
Rev | Line | |
---|
[20] | 1 | #!/bin/bash
|
---|
| 2 | #
|
---|
[530] | 3 | # Creates Gentoo environment from SVN repository
|
---|
[33] | 4 | #
|
---|
| 5 | # $Id: gentoo-env 537 2006-05-12 00:04:55Z bcornec $
|
---|
| 6 | #
|
---|
[20] | 7 |
|
---|
[319] | 8 | dname=`dirname $0`
|
---|
| 9 | prem=`echo $dname |cut -c1`
|
---|
| 10 | if [ ${prem} == "/" ]; then
|
---|
| 11 | export TOOLHOME=$dname
|
---|
| 12 | else
|
---|
| 13 | export TOOLHOME=${PWD}/$dname
|
---|
| 14 | fi
|
---|
[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
|
---|
| 21 | export pkg=""
|
---|
| 22 | export opt=""
|
---|
[530] | 23 | export ARCH=""
|
---|
[20] | 24 |
|
---|
[530] | 25 | export TOPDIR=${BASE}/ebuild
|
---|
[318] | 26 | mkdir -p ${TOPDIR}
|
---|
[20] | 27 |
|
---|
[530] | 28 | export dfam="gentoo"
|
---|
| 29 | export ddir="gentoo"
|
---|
| 30 | export dver=`awk '{print $4}' /etc/gentoo-release`
|
---|
| 31 | export suf=".`echo $dver | sed 's/\.//'`"
|
---|
[60] | 32 |
|
---|
| 33 | if [ _"$suf" = _"" ]; then
|
---|
[313] | 34 | export suf=".${ddir}${dver}"
|
---|
[60] | 35 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.