From 892de428586735edcdc2858e9935141059a8a25c Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 27 May 2002 08:07:49 +0000 Subject: [PATCH] (VERSION): Calculate using the same method that configure.in uses. --- admin/quick-install-emacs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/admin/quick-install-emacs b/admin/quick-install-emacs index fa423a5dc6e..6619554eddc 100755 --- a/admin/quick-install-emacs +++ b/admin/quick-install-emacs @@ -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" -- 2.39.5