summaryrefslogtreecommitdiff
path: root/admin/quick-install-emacs
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2002-05-27 08:07:49 +0000
committerMiles Bader <miles@gnu.org>2002-05-27 08:07:49 +0000
commit4e4c40ed8503425fab1d735a98d50ea9e0ccbeed (patch)
treee487b304be0410c2da330d2dfe7ca07f912ef3bf /admin/quick-install-emacs
parent0edd38463e851a828268dc44a9a5f62724ccc26b (diff)
downloademacs-4e4c40ed8503425fab1d735a98d50ea9e0ccbeed.tar.gz
(VERSION): Calculate using the same method that configure.in uses.
Diffstat (limited to 'admin/quick-install-emacs')
-rwxr-xr-xadmin/quick-install-emacs4
1 files changed, 3 insertions, 1 deletions
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"