ppcrcd/trunk/Makefile
sparky
cvs at pld-linux.org
Thu Apr 20 00:32:36 CEST 2006
Author: sparky
Date: Thu Apr 20 00:32:34 2006
New Revision: 7361
Modified:
ppcrcd/trunk/Makefile
Log:
- upgrade all packages in system just after build (maybe it won't blowup anything)
Modified: ppcrcd/trunk/Makefile
==============================================================================
--- ppcrcd/trunk/Makefile (original)
+++ ppcrcd/trunk/Makefile Thu Apr 20 00:32:34 2006
@@ -242,9 +242,11 @@
--define="rpmcflags $(CFLAGS)"; \
echo $$? > $(PWD)/EXIT) | tee $(PWD)/buildout;
[ `cat EXIT` == 0 ] || exit `cat EXIT`
+ rm -f RPMlist
for RPM in `sed -n '/^Wrote:/s at Wrote: .*/@@ p' buildout`; do \
- echo $$RPM > $(R)/`echo $$RPM | \
- sed -e 's at .*/@@g' -e 's/-[^-]*-[^-]*$$//'`; \
+ PKG=`echo $$RPM | sed -e 's at .*/@@g' -e 's/-[^-]*-[^-]*$$//'`; \
+ echo $$RPM > $(R)/$$PKG; \
+ rpm -q $$PKG && echo $$RPM >> RPMlist; \
done
rm buildout EXIT
$(if $(DONTREMOVE),,-rm -rf out/rpm/BUILD/*)
@@ -252,6 +254,8 @@
$(if $(NOTEQ-$(notdir $(firstword $^))), rm -f \
out/touch/$(NOTEQ-$(notdir $(firstword $^))),#)
sleep 1 && touch $@ && sleep 1
+ -$(SU) rpm -Uhv --replacepkgs out/rpm/RPMS/`cat RPMlist`
+ rm -f RPMlist
out/rpm/prep/%: out/rpm/sources/%
sleep 1 && touch $@
More information about the pld-cvs-commit
mailing list