Ignore:
Timestamp:
May 8, 2006, 5:31:14 PM (14 years ago)
Author:
bcornec
Message:

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

File:
1 copied

Legend:

Unmodified
Added
Removed
  • branches/stable/tools/gentoo-env

    r528 r530  
    11#!/bin/bash
    22#
    3 # Creates RPMs environment from SVN repository
     3# Creates Gentoo environment from SVN repository
    44#
    55# $Id$
     
    1616. $TOOLHOME/common-env
    1717
    18 export ARCH=`rpm --showrc | egrep "^build arch" | awk '{print $4}'`
     18#export ARCH=`rpm --showrc | egrep "^build arch" | awk '{print $4}'`
    1919
    2020# Should not be modified below
    2121export pkg=""
    2222export opt=""
     23export ARCH=""
    2324
    24 if [ -f ${HOME}/.rpmmacros ]; then
    25     export TOPDIR=`egrep '^%_topdir' ${HOME}/.rpmmacros | awk '{print $2}'`
    26 else
    27     export TOPDIR=${BASE}/RPMS
    28 fi
     25export TOPDIR=${BASE}/ebuild
    2926mkdir -p ${TOPDIR}
    30 cd ${TOPDIR}
    31 mkdir -p RPMS SRPMS SPECS SOURCES BUILD
    3227
    33 if [ -e /etc/mandriva-release ]; then
    34     export dfam="mandriva"
    35     export ddir="mandriva"
    36     export dver=`awk '{print $4}' /etc/mandriva-release`
    37     export suf=".`echo $dver | sed 's/\.//'`mdk"
    38 elif [ -e /etc/mandrake-release ]; then
    39     export dfam="mandriva"
    40     export ddir="mandrake"
    41     export dver=`awk '{print $3}' /etc/mandrake-release`
    42     export suf=".`echo $dver | sed 's/\.//'`mdk"
    43 elif [ -e /etc/redhat-release ]; then
    44     grep -q Enterprise /etc/redhat-release
    45     if [ $? -eq 0 ]; then
    46         export dfam="redhat"
    47         export ddir="rhel"
    48         export dver=`awk '{print $7}' /etc/redhat-release`
    49     elif grep -q Fedora /etc/redhat-release ; then
    50         export dfam="redhat"
    51         export ddir="fedora"
    52         export dver=`awk '{print $4}' /etc/redhat-release`
    53         export suf=".fc${dver}"
    54     else
    55         export dfam="redhat"
    56         export ddir="redhat"
    57         dver=`awk '{print $5}' /etc/redhat-release`
    58         export dver=`echo ${dver} | sed "s/\.//"`
    59         export suf=".rh${dver}"
    60     fi
    61 elif [ -e /etc/SuSE-release ]; then
    62     grep -q Enterprise /etc/SuSE-release
    63     if [ $? -eq 0 ]; then
    64         export dfam="suse"
    65         export ddir="sles"
    66         export dver=`head -1 /etc/SuSE-release | awk '{print $5}'`
    67     else
    68         export dfam="suse"
    69         export ddir="suse"
    70         export dver=`head -1 /etc/SuSE-release | awk '{print $3}'`
    71     fi
    72 else
    73     export dfam="generic"
    74     export dver=""
    75     export ddir="generic"
    76 fi
     28export dfam="gentoo"
     29export ddir="gentoo"
     30export dver=`awk '{print $4}' /etc/gentoo-release`
     31export suf=".`echo $dver | sed 's/\.//'`"
    7732
    7833if [ _"$suf" = _"" ]; then
Note: See TracChangeset for help on using the changeset viewer.