]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
configury: use $(SED) where input does not end in newline.
authorGary V. Vaughan <gary@gnu.org>
Wed, 30 Oct 2013 01:55:00 +0000 (14:55 +1300)
committerGary V. Vaughan <gary@gnu.org>
Wed, 1 Jan 2014 23:06:29 +0000 (12:06 +1300)
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 <gary@gnu.org>
Makefile.am

index fe269ed90216d4382fdd0b28dbc53d465dbf2cfe..ef2cb322b096acac390c6c55b00eb700a9a6af5f 100644 (file)
@@ -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'`
 
 
 # ---------- #