(shortversion): Don't assume another period follows.
This commit is contained in:
parent
9a49418b11
commit
47d105b07e
1 changed files with 3 additions and 1 deletions
|
@ -63,7 +63,7 @@ fi
|
|||
|
||||
### Find out which version of Emacs this is.
|
||||
shortversion=`grep 'defconst[ ]*emacs-version' lisp/version.el \
|
||||
| sed -e 's/^.*"\([0-9][0-9]*\.[0-9][0-9]*\)\..*$/\1/'`
|
||||
| sed -e 's/^.*"\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
|
||||
version=`grep 'defconst[ ]*emacs-version' lisp/version.el \
|
||||
| sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
|
||||
if [ ! "${version}" ]; then
|
||||
|
@ -71,6 +71,8 @@ if [ ! "${version}" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
echo $version and $shortversion
|
||||
|
||||
if grep -s "GNU Emacs version ${shortversion}" ./man/emacs.texi > /dev/null; then
|
||||
true
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue