- Timestamp:
- Nov 4, 2006, 12:38:25 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/tools/distro-env
r918 r920 121 121 122 122 # Default 123 export TOPBUILDDIR= `rpm --showrc | grep -E '[ ]_topdir[ ]' | awk '{print $3}'`123 export TOPBUILDDIR=${TOPDIR}/../build 124 124 125 125 if [ _"$dtype" = _"rpm" ]; then 126 export TOPBUILDDIR=`rpmquery -E '%{_topdir}' 2> /dev/null` 126 127 export ARCH=`rpm --showrc | egrep "^build arch" | awk '{print $4}'` 127 if [ -f ${HOME}/.rpmmacros ]; then128 _TOPBUILDDIR=`egrep '^%_topdir' ${HOME}/.rpmmacros | awk '{print $2}'`129 if [ _"$_TOPBUILDDIR" != _"" ]; then130 export TOPBUILDDIR=$_TOPBUILDDIR131 fi132 fi133 128 mkdir -p ${TOPBUILDDIR}/{RPMS,SRPMS,SPECS,SOURCES,BUILD} 134 129 if [ $? -ne 0 ]; then
Note:
See TracChangeset
for help on using the changeset viewer.