]> git.eshelyaron.com Git - emacs.git/commitdiff
* admin/quick-install-emacs: Tweak configure.ac parsing
authorMiles Bader <miles@gnu.org>
Fri, 19 Sep 2014 06:33:13 +0000 (15:33 +0900)
committerMiles Bader <miles@gnu.org>
Sat, 9 Sep 2017 03:34:53 +0000 (12:34 +0900)
admin/quick-install-emacs

index a5ec6965b193f525f3f3c34eb5c55e582ab818c8..76b3c64650307809e99f1822de7b9487c583f684 100755 (executable)
@@ -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; }