Changeset 319 in MondoRescue for branches/2.06/tools/rpm-env


Ignore:
Timestamp:
Jan 14, 2006, 11:44:12 AM (15 years ago)
Author:
bcornec
Message:
  • split build architecture to allow for multiple packages generation (rpms, debs, ebuild, ...)
  • only prepared for rpms and debs at the moment

Use tools/mkrpm to generate all the RPMs
Use tools/mkdeb (to be coded correctly) to generate all the debs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.06/tools/rpm-env

    r318 r319  
    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
    16 dname=`dirname $0`
    17 export VER="branches/`cat $dname/../mondo/VERSION`"
    1821export pkg=""
    1922export opt=""
    20 export ARCH=`rpm --showrc | egrep "^build arch" | awk '{print $4}'`
    2123
    22 export TMP=${BASE}/tmp
    23 mkdir -p ${TMP}
    2424if [ -f ${HOME}/.rpmmacros ]; then
    2525    export TOPDIR=`egrep '^%_topdir' ${HOME}/.rpmmacros | awk '{print $2}'`
     
    3030cd ${TOPDIR}
    3131mkdir -p RPMS SRPMS SPECS SOURCES BUILD
    32 
    33 export MINDI_VER=`cat ${BASE}/svn/${VER}/mindi/VERSION`
    34 export MONDO_VER=`cat ${BASE}/svn/${VER}/mondo/VERSION`
    3532
    3633if [ -e /etc/mandriva-release ]; then
Note: See TracChangeset for help on using the changeset viewer.