Changeset 320 for trunk/tools/rpm-env


Ignore:
Timestamp:
Jan 15, 2006, 12:29:12 AM (13 years ago)
Author:
bcornec
Message:

merge -r316:319 $SVN_M/branches/2.06

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/rpm-env

    r317 r320  
    66#
    77
    8 # Adapt to your needs
    9 export BASE=${HOME}/mondo
    10 export SVNAUTH=bcornec@shell.berlios.de
    11 export DSTDIR=/home/groups/ftp/pub/mondorescue
    12 export FTPSERV="ftp.berlios.de"
    13 export FTPDIR="/incoming"
     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
     18export ARCH=`rpm --showrc | egrep "^build arch" | awk '{print $4}'`
    1419
    1520# Should not be modified below
     
    1722export pkg=""
    1823export opt=""
    19 export ARCH=`rpm --showrc | egrep "^build arch" | awk '{print $4}'`
    2024
    21 mkdir -p ${BASE}/RPMS
    22 export TMP=${BASE}/tmp
    23 mkdir -p ${TMP}
    2425if [ -f ${HOME}/.rpmmacros ]; then
    2526    export TOPDIR=`egrep '^%_topdir' ${HOME}/.rpmmacros | awk '{print $2}'`
     
    2728    export TOPDIR=${BASE}/RPMS
    2829fi
     30mkdir -p ${TOPDIR}
    2931cd ${TOPDIR}
    3032mkdir -p RPMS SRPMS SPECS SOURCES BUILD
    31 
    32 export MINDI_VER=`cat ${BASE}/svn/${VER}/mindi/VERSION`
    33 export MONDO_VER=`cat ${BASE}/svn/${VER}/mondo/VERSION`
    3433
    3534if [ -e /etc/mandriva-release ]; then
Note: See TracChangeset for help on using the changeset viewer.