summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xautogen.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index 91e1e2cea23..f6bfde6afb2 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -223,7 +223,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
- sed '/^[^#]/s|^.*$|/^## begin *gnulib module &/,/^## end *gnulib module &/c ## gnulib module & removed|' nt/gnulib-modules-to-delete.cfg | sed -f- lib/gnulib.mk > nt/gnulib.mk
+ echo 'Inferring nt/gnulib.mk from lib/gnulib.mk ...'
+ metascript='/^[^#]/s|^.*$|/^## begin *gnulib module &/,/^## end *gnulib module &/c ## gnulib module & removed|'
+ script=`sed "$metascript" nt/gnulib-modules-to-delete.cfg` || exit
+ sed "$script" lib/gnulib.mk > nt/gnulib.mk || exit
fi
echo "Running 'autoreconf -fi -I m4' ..."