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 @scripts/echo Building $(APPLIANCE)-specific software
$(MAKE) -C appliances/$(APPLIANCE) preinstall $(MAKE) -C appliances/$(APPLIANCE) preinstall
if test `stat -c "%s" $(WORLD)` -ne 0 ; then \ cp $(WORLD) $(CHROOT)/tmp/world
$(inroot) $(EMERGE) $(USEPKG) --update --newuse --deep `cat $(WORLD)` $(EXTRA_WORLD); \ $(inroot) xargs -a/tmp/world -d'\n' -r $(EMERGE) $(USEPKG) --update --newuse --deep
else \
true; \
fi
-$(gcc_config) -$(gcc_config)
@scripts/echo Running @preserved-rebuild @scripts/echo Running @preserved-rebuild