diff options
author | Eli Zaretskii <eliz@gnu.org> | 2017-01-05 21:36:58 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2017-01-05 21:36:58 +0200 |
commit | ade6a024c80dbb0b66d9d2e10ccd350618036e78 (patch) | |
tree | 045ac14daccc0a319fc008ed0349e7acf7d0ab10 /autogen.sh | |
parent | 99af58d74e431da6b55f21272bf72a9f56ce0900 (diff) | |
download | emacs-ade6a024c80dbb0b66d9d2e10ccd350618036e78.tar.gz |
Yet another fix for autogen.sh
* autogen.sh (gnulib.mk): Make the Sed script more portable.
* nt/Makefile.in (${srcdir}/gnulib.mk): Adapt the Sed command to
the changes in autogen.sh.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/autogen.sh b/autogen.sh index 47e518ccf68..e5b3eadf33e 100755 --- a/autogen.sh +++ b/autogen.sh @@ -224,10 +224,8 @@ 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 ...' - 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.$$ + metascript='/^[^#]/s|^.*$|/^## begin *gnulib module &/,/^## end *gnulib module &/d|' + script=`sed "$metascript" nt/gnulib-modules-to-delete.cfg` || exit sed "$script" lib/gnulib.mk > nt/gnulib.mk || exit fi |