Changeset 872 in MondoRescue for branches/stable/tools/distro-env
- Timestamp:
- Oct 4, 2006, 3:08:01 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/tools/distro-env
r732 r872 117 117 # Additional exports and preparation for some distros 118 118 # 119 120 # Default 121 export TOPBUILDDIR=${TOPDIR}/../build 122 119 123 if [ _"$dtype" = _"rpm" ]; then 120 124 export ARCH=`rpm --showrc | egrep "^build arch" | awk '{print $4}'` 121 125 if [ -f ${HOME}/.rpmmacros ]; then 122 126 export TOPBUILDDIR=`egrep '^%_topdir' ${HOME}/.rpmmacros | awk '{print $2}'` 123 else124 export TOPBUILDDIR=${BASE}/build125 127 fi 126 128 mkdir -p ${TOPBUILDDIR}/{RPMS,SRPMS,SPECS,SOURCES,BUILD} 127 129 elif [ _"$dtype" = _"deb" ]; then 128 export TOPBUILDDIR=${BASE}/build129 130 mkdir -p ${TOPBUILDDIR} 130 131 elif [ _"$dtype" = _"ebuild" ]; then 131 export TOPBUILDDIR=${BASE}/build132 132 mkdir -p ${TOPBUILDDIR}/portage 133 133 fi
Note:
See TracChangeset
for help on using the changeset viewer.