From: Miles Bader Date: Fri, 19 Sep 2014 06:33:13 +0000 (+0900) Subject: * admin/quick-install-emacs: Tweak configure.ac parsing X-Git-Tag: emacs-26.0.90~223 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ce9640845155c1dd9c11e46104f223af7cd4f7fa;p=emacs.git * admin/quick-install-emacs: Tweak configure.ac parsing --- diff --git a/admin/quick-install-emacs b/admin/quick-install-emacs index a5ec6965b19..76b3c646503 100755 --- a/admin/quick-install-emacs +++ b/admin/quick-install-emacs @@ -172,7 +172,10 @@ test x"$prefix" = x && { prefix="`get_config_var prefix`" || exit 4 ; } test x"$ARCH" = x && { ARCH="`get_config_var host`" || exit 4 ; } VERSION=` - sed -n 's/^AC_INIT(emacs,[ ]*\([^ )]*\).*/\1/p' <$SRC/configure.ac + sed -n 's/^AC_INIT([ ]*emacs[ ]*,[ ]*\([^ ),]*\).*/\1/p' <$SRC/configure.ac +` || exit 4 +test -n "$VERSION" || VERSION=` + sed -n 's/^AC_INIT([ ]*GNU Emacs[ ]*,[ ]*\([^ ),]*\).*/\1/p' <$SRC/configure.ac ` || exit 4 test -n "$VERSION" || { printf '%s\n' >&2 "$me: no version in configure.ac"; exit 4; }