From: Miles Bader Date: Mon, 27 May 2002 08:07:49 +0000 (+0000) Subject: (VERSION): Calculate using the same method that configure.in uses. X-Git-Tag: ttn-vms-21-2-B4~14856 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=892de428586735edcdc2858e9935141059a8a25c;p=emacs.git (VERSION): Calculate using the same method that configure.in uses. --- 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"