projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Use result of AC_PROG_* when using sed / grep
[lttng-tools.git]
/
include
/
Makefile.am
diff --git
a/include/Makefile.am
b/include/Makefile.am
index 4b59e72d8589d28af21e7b4a531539e0fdcbc050..fd9d8d02391a8db0232b9ac0c842791fdca76df9 100644
(file)
--- a/
include/Makefile.am
+++ b/
include/Makefile.am
@@
-42,10
+42,10
@@
version.h:
## want to update the file if it is already up to date.
##
version_match='^#define GIT_VERSION.*'; \
## want to update the file if it is already up to date.
##
version_match='^#define GIT_VERSION.*'; \
- old_version=$$(
grep
"$${version_match}" "$${version_h}"); \
+ old_version=$$(
$(GREP)
"$${version_match}" "$${version_h}"); \
new_version="#define GIT_VERSION \"$${git_version}\""; \
if [ x"$${old_version}" != x"$${new_version}" ]; then \
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 "s'$${version_match}'$${new_version}'" "$${version_h}"; \
else \
echo -n " (cached)"; \
fi; \
else \
echo -n " (cached)"; \
fi; \
@@
-55,7
+55,7
@@
version.h:
##
## version.h is defined as a .PHONY file even if it's a real file as
##
## version.h is defined as a .PHONY file even if it's a real file as
-## we want our routine to be r
unned
for each build.
+## we want our routine to be r
an
for each build.
##
.PHONY: version.h
##
.PHONY: version.h
This page took
0.02538 seconds
and
5
git commands to generate.