From 168de34153d3e73f3e0416d2c5d10107181f2769 Mon Sep 17 00:00:00 2001 From: Albert Hopkins Date: Wed, 16 Sep 2015 23:29:49 +0000 Subject: [PATCH] Use xargs to process the world file Instead of the if `stat ....` we can simply use xarg -r -a ... --- Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index f3da30f..367013a 100644 --- a/Makefile +++ b/Makefile @@ -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