X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2FMakefile.am;h=d2061f1e05ea75bb7db8fd542dc683d19253bdca;hp=89b084d01b45a62bcbd59ce62e04292dfcae5cbd;hb=ceb6ba5100c73f6a2b39475c89f3317d64fc9b48;hpb=456b8d40f14be07cca75a9e22ec77976c895d4d5 diff --git a/include/Makefile.am b/include/Makefile.am index 89b084d01..d2061f1e0 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -46,8 +46,8 @@ version.h: ## as the one currently in the file (if there is one), as we ## don't want to update the file if it is already up to date ## - if [ $$(grep -cE "^#define GIT_VERSION \"?$${git_version}\"?$$" "$${version_h}") -eq 0 ]; then \ - sed -i "s'^#define GIT_VERSION.*$$'#define GIT_VERSION \"$${git_version}\"'" "$${version_h}"; \ + if [ $$(grep -cE "^#define GIT_VERSION_SED \"?$${git_version}\"?$$" "$${version_h}") -eq 0 ]; then \ + sed -i "s'^#define GIT_VERSION_SED.*$$'#define GIT_VERSION \"$${git_version}\"'" "$${version_h}"; \ fi; \ fi; \ fi)