Use xargs to process the world file
Instead of the if `stat ....` we can simply use xarg -r -a ...
This commit is contained in:
parent
2f9b52e3c5
commit
168de34153
7
Makefile
7
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue