changeset 45539:99b2cc9b795c

(VERSION): Calculate using the same method that configure.in uses.
author Miles Bader <miles@gnu.org>
date Mon, 27 May 2002 08:07:49 +0000
parents d0dd5147355a
children 1756da24c6ba
files admin/quick-install-emacs
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/admin/quick-install-emacs	Mon May 27 08:07:29 2002 +0000
+++ b/admin/quick-install-emacs	Mon May 27 08:07:49 2002 +0000
@@ -140,9 +140,11 @@
 
 test x"$SRC" = x && { SRC="`get_config_var srcdir`" || exit 4 ; }
 test x"$prefix" = x && { prefix="`get_config_var prefix`" || exit 4 ; }
-test x"$VERSION" = x && { VERSION="`get_config_var version`" || exit 4 ; }
 test x"$ARCH" = x && { ARCH="`get_config_var host`" || exit 4 ; }
 
+VERSION=`grep 'defconst[	 ]*emacs-version' $SRC/lisp/version.el \
+         | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
+
 DST_SHARE="$prefix/share/emacs/$VERSION"
 DST_BIN="$prefix/bin"
 DST_LIBEXEC="$prefix/libexec/emacs/$VERSION/$ARCH"