[lttng-dev] [PATCH lttng-ust] Fix: preserve example files' timestamps when copying

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Thu Oct 16 09:48:49 EDT 2014


Merged, thanks!

Mathieu

----- Original Message -----
> From: "Jérémie Galarneau" <jeremie.galarneau at efficios.com>
> To: lttng-dev at lists.lttng.org
> Cc: "mathieu desnoyers" <mathieu.desnoyers at efficios.com>, "Jérémie Galarneau" <jeremie.galarneau at efficios.com>
> Sent: Thursday, October 16, 2014 3:45:19 PM
> Subject: [PATCH lttng-ust] Fix: preserve example files' timestamps when copying
> 
> This fixes an issue where examples were always being rebuilt
> when performing an out of tree build since the examples were
> being copied to the build directory with a timestamp more
> recent than the already-built example objects.
> 
> Signed-off-by: Jérémie Galarneau <jeremie.galarneau at efficios.com>
> ---
>  doc/examples/Makefile.am | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am
> index fbabb8e..6f0a31a 100644
> --- a/doc/examples/Makefile.am
> +++ b/doc/examples/Makefile.am
> @@ -57,7 +57,7 @@ endif
>  all-local:
>  	@if [ x"$(srcdir)" != x"$(builddir)" ]; then \
>  		for subdir in $(SUBDIRS_PROXY) $(SUBDIRS_JUL); do \
> -			cp -fR $(srcdir)/$$subdir $(builddir); \
> +			cp -pfR $(srcdir)/$$subdir $(builddir); \
>  		done; \
>  	fi; \
>  	if [ x"$(shell echo "$(top_srcdir)" | grep "^/" | wc -l)" = x"1" ]; then \
> --
> 2.1.2
> 
> 

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list