diff options
author | Miles Bader <miles@gnu.org> | 2002-05-27 08:07:49 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 2002-05-27 08:07:49 +0000 |
commit | 4e4c40ed8503425fab1d735a98d50ea9e0ccbeed (patch) | |
tree | e487b304be0410c2da330d2dfe7ca07f912ef3bf /admin/quick-install-emacs | |
parent | 0edd38463e851a828268dc44a9a5f62724ccc26b (diff) | |
download | emacs-4e4c40ed8503425fab1d735a98d50ea9e0ccbeed.tar.gz |
(VERSION): Calculate using the same method that configure.in uses.
Diffstat (limited to 'admin/quick-install-emacs')
-rwxr-xr-x | admin/quick-install-emacs | 4 |
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" |