mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-22 07:09:54 +00:00
(version): Fix sed regexp to match two-elt version number.
This commit is contained in:
parent
dbc52c10f4
commit
e773d20a7b
@ -1291,7 +1291,7 @@ fi
|
||||
[
|
||||
#### Find out which version of Emacs this is.
|
||||
version=`grep 'defconst[ ]*emacs-version' ${srcdir}/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/'`
|
||||
if [ x"${version}" = x ]; then
|
||||
echo "${progname}: can't find current emacs version in
|
||||
\`${srcdir}/lisp/version.el'." >&2
|
||||
|
Loading…
Reference in New Issue
Block a user