From 99af58d74e431da6b55f21272bf72a9f56ce0900 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 5 Jan 2017 19:48:49 +0200 Subject: * autogen.sh (gnulib.mk): Another attempt to fix macOS build. --- autogen.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'autogen.sh') diff --git a/autogen.sh b/autogen.sh index 1ba925380c9..47e518ccf68 100755 --- a/autogen.sh +++ b/autogen.sh @@ -224,8 +224,10 @@ Please report any problems with this script to bug-gnu-emacs@gnu.org .' ## Create nt/gnulib.mk if it doesn't exist, as autoreconf will need it. if test ! -f nt/gnulib.mk; then echo 'Inferring nt/gnulib.mk from lib/gnulib.mk ...' - metascript='/^[^#]/s|^.*$|/^## begin *gnulib module &/,/^## end *gnulib module &/c\\\'\n'## gnulib module & removed|' - script=`sed "$metascript" nt/gnulib-modules-to-delete.cfg` || exit + echo '/^[^#]/s|^.*$|/^## begin *gnulib module &/,/^## end *gnulib module &/c\\\' > metascript.$$ + echo '## gnulib module & removed|' >> metascript.$$ + script=`sed -f metascript.$$ nt/gnulib-modules-to-delete.cfg` || exit + rm -f metascript.$$ sed "$script" lib/gnulib.mk > nt/gnulib.mk || exit fi -- cgit v1.2.1