From 25e3dd5365aaab8f470e1c40b1559f3fb4ae68e4 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 5 Nov 2007 11:03:55 +0100 Subject: [PATCH] Don't use GNU-sed-specific \< \> operators. * configure.ac (MAN): Transform ginstall.1 to install.1 using a loop, rather than sed with \<...\>. Problem reported by Bruno Haible. Andreas Schwab reminded me that \< and \> are not portable. --- ChangeLog | 6 ++++++ configure.ac | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9e28c50..cd7a9f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2007-11-05 Jim Meyering + Don't use GNU-sed-specific \< \> operators. + * configure.ac (MAN): Transform ginstall.1 to install.1 using + a loop, rather than sed with \<...\>. + Problem reported by Bruno Haible. + Andreas Schwab reminded me that \< and \> are not portable. + Get git-version-gen from gnulib. * build-aux/git-version-gen: Remove file. * build-aux/.gitignore: Add git-version-gen. diff --git a/configure.ac b/configure.ac index a685c95..494155a 100644 --- a/configure.ac +++ b/configure.ac @@ -307,7 +307,7 @@ esac MAN=`echo "$optional_bin_progs "|sed 's/ /.1 /g;s/ $//'` # Change ginstall.1 to "install.h" in $MAN. -MAN=`echo "$MAN"|sed 's/\/install.1/'` +MAN=`for m in $MAN; do test $m = ginstall.1 && m=install.1; echo $m; done | tr '\012' ' '; echo` # Remove [.1, since writing a portable rule for it in man/Makefile.am # is not practical. The sed LHS below uses the autoconf quadrigraph -- 2.7.4