comparison admin/quick-install-emacs @ 45539:99b2cc9b795c

(VERSION): Calculate using the same method that configure.in uses.
author Miles Bader <miles@gnu.org>
date Mon, 27 May 2002 08:07:49 +0000
parents 271a4f9d12fc
children a22f8991ae27
comparison
equal deleted inserted replaced
45538:d0dd5147355a 45539:99b2cc9b795c
138 fi 138 fi
139 } 139 }
140 140
141 test x"$SRC" = x && { SRC="`get_config_var srcdir`" || exit 4 ; } 141 test x"$SRC" = x && { SRC="`get_config_var srcdir`" || exit 4 ; }
142 test x"$prefix" = x && { prefix="`get_config_var prefix`" || exit 4 ; } 142 test x"$prefix" = x && { prefix="`get_config_var prefix`" || exit 4 ; }
143 test x"$VERSION" = x && { VERSION="`get_config_var version`" || exit 4 ; }
144 test x"$ARCH" = x && { ARCH="`get_config_var host`" || exit 4 ; } 143 test x"$ARCH" = x && { ARCH="`get_config_var host`" || exit 4 ; }
144
145 VERSION=`grep 'defconst[ ]*emacs-version' $SRC/lisp/version.el \
146 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
145 147
146 DST_SHARE="$prefix/share/emacs/$VERSION" 148 DST_SHARE="$prefix/share/emacs/$VERSION"
147 DST_BIN="$prefix/bin" 149 DST_BIN="$prefix/bin"
148 DST_LIBEXEC="$prefix/libexec/emacs/$VERSION/$ARCH" 150 DST_LIBEXEC="$prefix/libexec/emacs/$VERSION/$ARCH"
149 DST_INFO="$prefix/info" 151 DST_INFO="$prefix/info"