(shortversion): Don't assume another period follows.

This commit is contained in:
Richard M. Stallman 1994-05-30 11:55:22 +00:00
parent 9a49418b11
commit 47d105b07e

View file

@ -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