mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 14:30:50 -08:00
Shorten autogen.sh script
* autogen.sh: Use a shorter script, as some 'sed' implementations mishandle long scripts.
This commit is contained in:
parent
ade6a024c8
commit
d1d9b37630
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
## Create nt/gnulib.mk if it doesn't exist, as autoreconf will need it.
|
||||||
if test ! -f nt/gnulib.mk; then
|
if test ! -f nt/gnulib.mk; then
|
||||||
echo 'Inferring nt/gnulib.mk from lib/gnulib.mk ...'
|
echo 'Inferring nt/gnulib.mk from lib/gnulib.mk ...'
|
||||||
metascript='/^[^#]/s|^.*$|/^## begin *gnulib module &/,/^## end *gnulib module &/d|'
|
metascript='/^[^#]/s|^.*$|/^## begin *gnulib module &/,/^## end *gnulib module &/d|p'
|
||||||
script=`sed "$metascript" nt/gnulib-modules-to-delete.cfg` || exit
|
script=`sed -n "$metascript" nt/gnulib-modules-to-delete.cfg` || exit
|
||||||
sed "$script" lib/gnulib.mk > nt/gnulib.mk || exit
|
sed "$script" lib/gnulib.mk > nt/gnulib.mk || exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue