Changeset 872 in MondoRescue for branches/stable/tools/distro-env


Ignore:
Timestamp:
Oct 4, 2006, 3:08:01 PM (18 years ago)
Author:
Bruno Cornec
Message:

Fix bug #79 by removing use of SVNBRANCH and BASE variable in build process
WARNING: the build process doesn't allow anymore to use the script of one version for building another version

File:
1 edited

Legend:

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

    r732 r872  
    117117# Additional exports and preparation for some distros
    118118#
     119
     120# Default
     121export TOPBUILDDIR=${TOPDIR}/../build
     122
    119123if [ _"$dtype" = _"rpm" ]; then
    120124    export ARCH=`rpm --showrc | egrep "^build arch" | awk '{print $4}'`
    121125    if [ -f ${HOME}/.rpmmacros ]; then
    122126        export TOPBUILDDIR=`egrep '^%_topdir' ${HOME}/.rpmmacros | awk '{print $2}'`
    123     else
    124         export TOPBUILDDIR=${BASE}/build
    125127    fi
    126128    mkdir -p ${TOPBUILDDIR}/{RPMS,SRPMS,SPECS,SOURCES,BUILD}
    127129elif [ _"$dtype" = _"deb" ]; then
    128     export TOPBUILDDIR=${BASE}/build
    129130    mkdir -p ${TOPBUILDDIR}
    130131elif [ _"$dtype" = _"ebuild" ]; then
    131     export TOPBUILDDIR=${BASE}/build
    132132    mkdir -p ${TOPBUILDDIR}/portage
    133133fi
Note: See TracChangeset for help on using the changeset viewer.