diff options
| author | Richard M. Stallman | 1994-05-30 11:55:22 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-05-30 11:55:22 +0000 |
| commit | 47d105b07e6e454d991ed7e36683b11ad79e093a (patch) | |
| tree | 1dc07d1424a1a26caf89d59a452b0108f40818c9 | |
| parent | 9a49418b11a33d8a90ca812395d3de918a672244 (diff) | |
| download | emacs-47d105b07e6e454d991ed7e36683b11ad79e093a.tar.gz emacs-47d105b07e6e454d991ed7e36683b11ad79e093a.zip | |
(shortversion): Don't assume another period follows.
| -rwxr-xr-x | make-dist | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -63,7 +63,7 @@ fi | |||
| 63 | 63 | ||
| 64 | ### Find out which version of Emacs this is. | 64 | ### Find out which version of Emacs this is. |
| 65 | shortversion=`grep 'defconst[ ]*emacs-version' lisp/version.el \ | 65 | shortversion=`grep 'defconst[ ]*emacs-version' lisp/version.el \ |
| 66 | | sed -e 's/^.*"\([0-9][0-9]*\.[0-9][0-9]*\)\..*$/\1/'` | 66 | | sed -e 's/^.*"\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'` |
| 67 | version=`grep 'defconst[ ]*emacs-version' lisp/version.el \ | 67 | version=`grep 'defconst[ ]*emacs-version' lisp/version.el \ |
| 68 | | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | 68 | | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` |
| 69 | if [ ! "${version}" ]; then | 69 | if [ ! "${version}" ]; then |
| @@ -71,6 +71,8 @@ if [ ! "${version}" ]; then | |||
| 71 | exit 1 | 71 | exit 1 |
| 72 | fi | 72 | fi |
| 73 | 73 | ||
| 74 | echo $version and $shortversion | ||
| 75 | |||
| 74 | if grep -s "GNU Emacs version ${shortversion}" ./man/emacs.texi > /dev/null; then | 76 | if grep -s "GNU Emacs version ${shortversion}" ./man/emacs.texi > /dev/null; then |
| 75 | true | 77 | true |
| 76 | else | 78 | else |