summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--configure.ac2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9e28c50ea..cd7a9f478 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2007-11-05 Jim Meyering <meyering@redhat.com>
+ 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 a685c9532..494155a18 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/\<ginstall\.1\>/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