diff src/Makefile @ 11374:889da8649221 v8.0.0572

patch 8.0.0572: building the command table requires Perl commit https://github.com/vim/vim/commit/6de5e126018b6f92526795cc06b1d73fac965db1 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 20 21:55:44 2017 +0200 patch 8.0.0572: building the command table requires Perl Problem: Building the command table requires Perl. Solution: Use a Vim script solution. (Dominique Pelle, closes https://github.com/vim/vim/issues/1641)
author Christian Brabandt <cb@256bit.org>
date Thu, 20 Apr 2017 22:00:04 +0200
parents e11d5966b822
children 78d7b92bfb1d
line wrap: on
line diff
--- a/src/Makefile
+++ b/src/Makefile
@@ -1885,15 +1885,12 @@ autoconf:
 	-rm -rf autom4te.cache
 	-rm -f auto/config.status auto/config.cache
 
-# Run Perl to generate the Ex command lookup table.  This only needs to be run
-# when a command name has been added or changed.
-# NOTE: Only works when perl and vim executables are available
+# Run vim script to generate the Ex command lookup table.
+# This only needs to be run when a command name has been added or changed.
+# If this fails because you don't have Vim yet, first build and install Vim
+# without changes.
 cmdidxs: ex_cmds.h
-	if test X`perl -e "print 123"` = "X123"; then \
-	   vim ex_docmd.c -c '/Beginning.*create_cmdidxs/,/End.*create_cmdidxs/! perl create_cmdidxs.pl' -c wq; \
-	else \
-	   echo Cannot run Perl; \
-	fi
+	vim -u NONE -i NONE -X -S create_cmdidxs.vim
 
 # Re-execute this Makefile to include the new auto/config.mk produced by
 # configure Only used when typing "make" with a fresh auto/config.mk.