From: Gary V. Vaughan Date: Wed, 30 Oct 2013 01:55:00 +0000 (+1300) Subject: configury: use $(SED) where input does not end in newline. X-Git-Tag: v2.4.2.444~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=24be64322deed74bec35893143fcd28494c570cd;p=thirdparty%2Flibtool.git 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 --- 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'` # ---------- #