* make-dist: Replace grep with sed when determining $version.
This commit is contained in:
parent
37ea9179e5
commit
3868ea0921
1 changed files with 1 additions and 2 deletions
|
@ -153,8 +153,7 @@ then
|
|||
fi
|
||||
|
||||
### Find out which version of Emacs this is.
|
||||
version=`grep 'char emacs_version' src/emacs.c \
|
||||
| sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
|
||||
version=`sed -n '/char emacs_version/ s/^[^"]*"\([^"]*\)".*$/\1/p' src/emacs.c`
|
||||
if [ ! "${version}" ]; then
|
||||
echo "${progname}: can't find current Emacs version in \`./src/emacs.c'" >&2
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Reference in a new issue