]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: fix build from git repository on OpenBSD
authorRenato Westphal <renato@opensourcerouting.org>
Wed, 2 Aug 2017 01:12:24 +0000 (22:12 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Wed, 2 Aug 2017 01:12:24 +0000 (22:12 -0300)
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 <renato@opensourcerouting.org>
lib/subdir.am

index cc082a8e8594c6d131db5b0a6487f517a5bbaa58..5a1971cba716219907299342a3880da0cb32ecaf 100644 (file)
@@ -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