Changeset 597 in MondoRescue for branches/2.0.8/tools/build2pkg
- Timestamp:
- May 30, 2006, 10:51:12 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0.8/tools/build2pkg
r576 r597 77 77 echo "Generating $p RPMS" 78 78 cd SPECS 79 tar xfz $src $pv/distributions/$ ddir/$p.spec80 mv $pv/distributions/$ ddir/$p.spec .79 tar xfz $src $pv/distributions/${ddir}-$dver/$p.spec 80 mv $pv/distributions/${ddir}-$dver/$p.spec . 81 81 rm -rf $pv 82 rm -rf ${TOPBUILDDIR}/RPMS/${ar}/* 83 rm -rf ${TOPBUILDDIR}/SRPMS/* 82 84 83 85 rpmbuild -ba $p.spec 2> $log 1> $log 86 egrep '^Wrote:' $log 84 87 if [ $? != 0 ]; then 85 88 cat $log 86 89 status=-1 87 90 fi 91 rm -rf ${TOPBUILDDIR}/BUILD/* 88 92 cd .. 89 93 elif [ _"$dtype" = _"ebuild" ]; then 90 94 log=/tmp/$p-gentoo.log 91 95 ln -sf $src . 92 tar xfz $src $pv/distributions/$ ddir/$p-${VER}-r$TAG.ebuild96 tar xfz $src $pv/distributions/${ddir}-$dver/$p-${VER}-r$TAG.ebuild 93 97 if [ _"`grep $TOPBUILDDIR/portage /etc/make.conf`" = _"" ]; then 94 98 echo "Adding $TOPBUILDDIR/portage to /etc/make.conf" … … 97 101 98 102 mkdir -p ${TOPBUILDDIR}/portage/sys-apps/$p 99 mv $pv/distributions/$ ddir/$p-${VER}-r$TAG.ebuild ${TOPBUILDDIR}/portage/sys-apps/$p103 mv $pv/distributions/${ddir}-$dver/$p-${VER}-r$TAG.ebuild ${TOPBUILDDIR}/portage/sys-apps/$p 100 104 rm -rf $pv 101 105
Note:
See TracChangeset
for help on using the changeset viewer.