diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2017-01-05 12:04:00 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2017-01-05 12:05:27 -0800 |
commit | d1d9b376306edb77632968cbbd7dfa456f00046c (patch) | |
tree | 8173f9aaae2ca8e6ced9dc4a2eb8d4454dfc04a0 /autogen.sh | |
parent | ade6a024c80dbb0b66d9d2e10ccd350618036e78 (diff) | |
download | emacs-d1d9b376306edb77632968cbbd7dfa456f00046c.tar.gz |
Shorten autogen.sh script
* autogen.sh: Use a shorter script, as some 'sed' implementations
mishandle long scripts.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh index e5b3eadf33e..2021c771fc8 100755 --- a/autogen.sh +++ b/autogen.sh @@ -224,8 +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 ...' - metascript='/^[^#]/s|^.*$|/^## begin *gnulib module &/,/^## end *gnulib module &/d|' - script=`sed "$metascript" nt/gnulib-modules-to-delete.cfg` || exit + metascript='/^[^#]/s|^.*$|/^## begin *gnulib module &/,/^## end *gnulib module &/d|p' + script=`sed -n "$metascript" nt/gnulib-modules-to-delete.cfg` || exit sed "$script" lib/gnulib.mk > nt/gnulib.mk || exit fi |