]> git.eshelyaron.com Git - emacs.git/commitdiff
(VERSION): Calculate using the same method that configure.in uses.
authorMiles Bader <miles@gnu.org>
Mon, 27 May 2002 08:07:49 +0000 (08:07 +0000)
committerMiles Bader <miles@gnu.org>
Mon, 27 May 2002 08:07:49 +0000 (08:07 +0000)
admin/quick-install-emacs

index fa423a5dc6ec9a6911cc8dde61dda33de42aab94..6619554eddc5d751985750294078871879668d5b 100755 (executable)
@@ -140,9 +140,11 @@ function get_config_var () {
 
 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"