From 24be64322deed74bec35893143fcd28494c570cd Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Wed, 30 Oct 2013 14:55:00 +1300 Subject: [PATCH] configury: use $(SED) where input does not end in newline. On Solaris machines the system sed does not process the last line of input unless it ends with a newline, which means it cannot be used to massage the output of git-version-gen, because it deliberately omits the terminating newline. * Makefile.am (rebuild): Use the sed command found by configure, which has a better chance of working properly than the first sed on PATH. Signed-off-by: Gary V. Vaughan --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index fe269ed90..ef2cb322b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -47,7 +47,7 @@ EXTRA_LTLIBRARIES = lt__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd git_version_gen = '$(SHELL)' '$(aux_dir)/git-version-gen' '--fallback' '$(VERSION)' '.tarball-version' -rebuild = rebuild=:; revision=`$(lt__cd) $(srcdir) && $(git_version_gen) | sed 's|-.*$$||g'` +rebuild = rebuild=:; revision=`$(lt__cd) $(srcdir) && $(git_version_gen) | $(SED) 's|-.*$$||g'` # ---------- # -- 2.47.3