Use xargs to process the world file

Instead of the if `stat ....` we can simply use xarg -r -a ...
This commit is contained in:
Albert Hopkins 2015-09-16 23:29:49 +00:00
parent 2f9b52e3c5
commit 168de34153
1 changed files with 2 additions and 5 deletions

View File

@ -221,11 +221,8 @@ $(SOFTWARE): $(STAGE3) $(SYSTOOLS) configs/eth.network configs/issue $(WORLD)
@scripts/echo Building $(APPLIANCE)-specific software
$(MAKE) -C appliances/$(APPLIANCE) preinstall
if test `stat -c "%s" $(WORLD)` -ne 0 ; then \
$(inroot) $(EMERGE) $(USEPKG) --update --newuse --deep `cat $(WORLD)` $(EXTRA_WORLD); \
else \
true; \
fi
cp $(WORLD) $(CHROOT)/tmp/world
$(inroot) xargs -a/tmp/world -d'\n' -r $(EMERGE) $(USEPKG) --update --newuse --deep
-$(gcc_config)
@scripts/echo Running @preserved-rebuild