From: Jérémie Galarneau Date: Fri, 5 Aug 2016 19:45:19 +0000 (-0400) Subject: Accomodate BSD sed in version.h generation X-Git-Tag: v2.9.0-rc1~61 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7211318dae2e469f896ded6673ef95bb5b7f6c7b;p=lttng-tools.git Accomodate BSD sed in version.h generation Signed-off-by: Jérémie Galarneau --- diff --git a/include/Makefile.am b/include/Makefile.am index 6c07a3165..ab966d28b 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -45,7 +45,7 @@ version.h: old_version=$$($(GREP) "$${version_match}" "$${version_h}"); \ new_version="#define GIT_VERSION \"$${git_version}\""; \ if [ x"$${old_version}" != x"$${new_version}" ]; then \ - $(SED) -i "s'$${version_match}'$${new_version}'" "$${version_h}"; \ + $(SED) -i '' -e "s'$${version_match}'$${new_version}'" "$${version_h}"; \ else \ echo $(ECHO_N) " (cached)$(ECHO_C)"; \ fi; \