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

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

Build process reviewed once more :
gentoo integration
slackware integration
mkqemu should only work with tar files, and not SVN (ease VM build and time in build process)
To be continued

DOES NOT WORK AT THE MOMENT

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