comparison make-dist @ 7755:6191acd134b6

(shortversion): Don't assume another period follows.
author Richard M. Stallman <rms@gnu.org>
date Mon, 30 May 1994 11:55:22 +0000
parents 836cfa8829a7
children cba3121c44b7
comparison
equal deleted inserted replaced
7754:d02006c4ac42 7755:6191acd134b6
61 exit 1 61 exit 1
62 fi 62 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
70 echo "${progname}: can't find current Emacs version in \`./lisp/version.el'." >&2 70 echo "${progname}: can't find current Emacs version in \`./lisp/version.el'." >&2
71 exit 1 71 exit 1
72 fi 72 fi
73
74 echo $version and $shortversion
73 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
77 echo "You must update the version number in \`./man/emacs.texi'" 79 echo "You must update the version number in \`./man/emacs.texi'"