From: Renato Westphal Date: Wed, 2 Aug 2017 01:12:24 +0000 (-0300) Subject: lib: fix build from git repository on OpenBSD X-Git-Tag: frr-4.0-dev~469^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=bd402424a472178263228d94f314aa50a9687062;p=mirror%2Ffrr.git lib: fix build from git repository on OpenBSD The OpenBSD's cp(1) command doesn't support the -v option. This will change in the next releases (starting from v6.2) but this patch fixes the problem for v6.1 and older releases. Fixes Issue #875. Signed-off-by: Renato Westphal --- diff --git a/lib/subdir.am b/lib/subdir.am index cc082a8e85..5a1971cba7 100644 --- a/lib/subdir.am +++ b/lib/subdir.am @@ -251,7 +251,7 @@ GITH=lib/gitversion.h lib/gitversion.h.tmp: $(top_srcdir)/.git @PERL@ $(top_srcdir)/lib/gitversion.pl $(top_srcdir) > ${GITH}.tmp lib/gitversion.h: lib/gitversion.h.tmp - { test -f ${GITH} && diff -s -q ${GITH}.tmp ${GITH}; } || cp -v ${GITH}.tmp ${GITH} + { test -f ${GITH} && diff -s -q ${GITH}.tmp ${GITH}; } || cp ${GITH}.tmp ${GITH} else .PHONY: lib/gitversion.h