Changeset 918 in MondoRescue for branches/stable/tools
- Timestamp:
- Nov 3, 2006, 2:00:54 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/tools/distro-env
r917 r918 121 121 122 122 # Default 123 export TOPBUILDDIR= ${TOPDIR}/../build123 export TOPBUILDDIR=`rpm --showrc | grep -E '[ ]_topdir[ ]' | awk '{print $3}'` 124 124 125 125 if [ _"$dtype" = _"rpm" ]; then 126 126 export ARCH=`rpm --showrc | egrep "^build arch" | awk '{print $4}'` 127 127 if [ -f ${HOME}/.rpmmacros ]; then 128 export TOPBUILDDIR=`egrep '^%_topdir' ${HOME}/.rpmmacros | awk '{print $2}'` 128 _TOPBUILDDIR=`egrep '^%_topdir' ${HOME}/.rpmmacros | awk '{print $2}'` 129 if [ _"$_TOPBUILDDIR" != _"" ]; then 130 export TOPBUILDDIR=$_TOPBUILDDIR 131 fi 129 132 fi 130 133 mkdir -p ${TOPBUILDDIR}/{RPMS,SRPMS,SPECS,SOURCES,BUILD} 134 if [ $? -ne 0 ]; then 135 echo "Please ensure that you can write into ${TOPBUILDDIR}" 136 echo "Solution: setup _topdir in your ~/.rpmmacros or" 137 echo "chown the ${TOPBUILDDIR} to your uid" 138 exit -1 139 fi 131 140 elif [ _"$dtype" = _"deb" ]; then 132 141 mkdir -p ${TOPBUILDDIR}
Note:
See TracChangeset
for help on using the changeset viewer.