Accomodate BSD sed in version.h generation
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 5 Aug 2016 19:45:19 +0000 (15:45 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 5 Aug 2016 19:45:19 +0000 (15:45 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/Makefile.am

index 6c07a31659201644fb514ad3d6b589d8ffe7274c..ab966d28b5bb15f1eee43e0f255703923cd03909 100644 (file)
@@ -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; \
This page took 0.025702 seconds and 4 git commands to generate.