From: Ian Campbell Date: Thu, 2 Jun 2011 16:25:27 +0000 (+0100) Subject: libxl: avoid build warning when _libxl_types.h does not initially exist. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~10224^2~17 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d586037ac3afa593aa0acacd219ce5f978467a9e;p=xen.git libxl: avoid build warning when _libxl_types.h does not initially exist. Olaf Hering reports: if ! cmp _libxl_paths.h.2.tmp _libxl_paths.h; then mv -f _libxl_paths.h.2.tmp _libxl_paths.h; fi cmp: _libxl_paths.h: No such file or directory Use "cmp -s" to silence the error. cmp returns 2 in this case and so the mv does occur. Signed-off-by: Ian Campbell Acked-by: Ian Jackson Tested-by: Olaf Hering Committed-by: Ian Jackson --- diff --git a/tools/libxl/Makefile b/tools/libxl/Makefile index 538cd16680..50a65672b9 100644 --- a/tools/libxl/Makefile +++ b/tools/libxl/Makefile @@ -69,7 +69,7 @@ $(eval $(genpath-target)) _libxl_paths.h: genpath sed -e "s/\([^=]*\)=\(.*\)/#define \1 \2/g" $@.tmp >$@.2.tmp - if ! cmp $@.2.tmp $@; then mv -f $@.2.tmp $@; fi + if ! cmp -s $@.2.tmp $@; then mv -f $@.2.tmp $@; fi libxl_paths.c: _libxl_paths.h