summaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2006-07-21 11:24:54 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:13:33 +0200
commitbbe99cb6b568b0a8ab297c33a4e107fe9efffa57 (patch)
tree7d25423d30c294212be9e713c496e88235ead064 /m4
parent43e18391bb6c278973c96d814b6413e3e1d13bab (diff)
downloadexternal_gettext-bbe99cb6b568b0a8ab297c33a4e107fe9efffa57.zip
external_gettext-bbe99cb6b568b0a8ab297c33a4e107fe9efffa57.tar.gz
external_gettext-bbe99cb6b568b0a8ab297c33a4e107fe9efffa57.tar.bz2
More portable way to call sed.
Diffstat (limited to 'm4')
-rw-r--r--m4/fixautomake.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/m4/fixautomake.m4 b/m4/fixautomake.m4
index d23db6a..0de29e7 100644
--- a/m4/fixautomake.m4
+++ b/m4/fixautomake.m4
@@ -24,7 +24,10 @@ dnl Fix an automake-1.9 bug: the distrib rule is not extensible.
dnl Insert a invocation of the distdir1 target inside the distdir commands,
dnl after $(distdir) has been erased and re-created.
AC_DEFUN([FIX_MAKEFILE_TOPDIR_DISTRIB], [
- sed -e '/^ mkdir \$(distdir)$/{a\' -e ' $(MAKE) distdir1' -e '}' < $ac_file > $ac_file.tmp
+ sed_script='/^ mkdir \$(distdir)$/{a\
+ $(MAKE) distdir1
+}'
+ sed -e "$sed_script" < $ac_file > $ac_file.tmp
mv $ac_file.tmp $ac_file
])