diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-01-31 00:12:52 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-01-31 00:12:52 -0800 |
commit | 16fab14354e612a22b5dea21b4106555fb05f712 (patch) | |
tree | 92aa748f7d38250ba4f8775207ada1d96d649737 /make-dist | |
parent | 3370edca839da739185a7a0d91d22dfa23a22188 (diff) | |
download | emacs-16fab14354e612a22b5dea21b4106555fb05f712.tar.gz |
src/emacs.c now gets version number from configure.in
Diffstat (limited to 'make-dist')
-rwxr-xr-x | make-dist | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/make-dist b/make-dist index da09c7096f8..37e0fb3e641 100755 --- a/make-dist +++ b/make-dist @@ -146,7 +146,9 @@ then fi ### Find out which version of Emacs this is. -version=`sed -n '/char emacs_version/ s/^[^"]*"\([^"]*\)".*$/\1/p' src/emacs.c` +version=` + sed -n 's/^AC_INIT(emacs,[ ]*\([^ )]*\).*/\1/p' <configure.in +` || version= if [ ! "${version}" ]; then echo "${progname}: can't find current Emacs version in \`./src/emacs.c'" >&2 exit 1 |