From: Michael Tremer Date: Sat, 27 Dec 2008 17:51:09 +0000 (+0100) Subject: Suspress a warning if the target dirs don't exist. X-Git-Tag: v3.0-alpha1~304 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b8606ede63ca710de8f4fa080cada27cc707a596;p=ipfire-3.x.git Suspress a warning if the target dirs don't exist. --- diff --git a/lfs/Config b/lfs/Config index a3d662300..437545f8f 100644 --- a/lfs/Config +++ b/lfs/Config @@ -137,7 +137,7 @@ define POSTBUILD if [ -s "$(OBJECT)_diff" ]; then \ LFS_SCRIPT="$(firstword $(MAKEFILE_LIST))"; \ if [ "x$(PASS)" != "x" ]; then LFS_SCRIPT="$$LFS_SCRIPT.p$(PASS)"; fi; \ - ROOTFILE=$$(find $(DIR_SOURCE)/rootfiles/{core,extras,debug}/{$(TARGET),} -maxdepth 1 -type f -name $$LFS_SCRIPT | head -1); \ + ROOTFILE=$$(find $(DIR_SOURCE)/rootfiles/{core,extras,debug}/{$(TARGET),} -maxdepth 1 -type f -name $$LFS_SCRIPT 2>/dev/null | head -1); \ if [ "$$ROOTFILE" = "" ]; then \ touch $(OBJECT)_missing_rootfile; \ ROOTFILE=$(OBJECT)_missing_rootfile ; \