Skip to content

Commit fb12ba8

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 1afdb99 + 97db554 commit fb12ba8

23 files changed

+886
-264
lines changed

Filelist

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ SRC_ALL = \
2424
src/edit.c \
2525
src/eval.c \
2626
src/evalfunc.c \
27+
src/ex_cmdidxs.h \
2728
src/ex_cmds.c \
2829
src/ex_cmds.h \
2930
src/ex_cmds2.c \
@@ -215,7 +216,7 @@ SRC_UNIX = \
215216
src/config.mk.in \
216217
src/configure \
217218
src/configure.ac \
218-
src/create_cmdidxs.pl \
219+
src/create_cmdidxs.vim \
219220
src/gui_at_fs.c \
220221
src/gui_at_sb.c \
221222
src/gui_at_sb.h \
@@ -239,7 +240,7 @@ SRC_UNIX = \
239240
src/link.sh \
240241
src/installman.sh \
241242
src/installml.sh \
242-
src/mkinstalldirs \
243+
src/install-sh \
243244
src/os_unix.c \
244245
src/os_unix.h \
245246
src/os_unixx.h \

src/Makefile

Lines changed: 37 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
#SunOS 4.1.x +X11 -GUI 5.1b (J) Bram Moolenaar
208208
#SunOS 4.1.3_U1 (sun4c) gcc +X11 +GUI Athena 5.0w (J) Darren Hiebert
209209
#SUPER-UX 6.2 (NEC SX-4) cc +X11R6 Motif,Athena4.6b (P) Lennart Schultz
210-
#Tandem/NSK (c) Matthew Woehlke
210+
#Tandem/NSK (c) Matthew Woehlke
211211
#Unisys 6035 cc +X11 Motif 5.3 (8) Glauber Ribeiro
212212
#ESIX V4.2 cc +X11 6.0 (a) Reinhard Wobst
213213
#Mac OS X 10.[23] gcc Carbon 6.2 (x) Bram Moolenaar
@@ -403,6 +403,7 @@ CClink = $(CC)
403403
# First one is for static linking, second one for dynamic loading.
404404
# Use --with-luajit if you want to use LuaJIT instead of Lua.
405405
# Set PATH environment variable to find lua or luajit executable.
406+
# This requires at least "normal" features, "tiny" and "small" don't work.
406407
#CONF_OPT_LUA = --enable-luainterp
407408
#CONF_OPT_LUA = --enable-luainterp=dynamic
408409
#CONF_OPT_LUA = --enable-luainterp --with-luajit
@@ -429,16 +430,15 @@ CClink = $(CC)
429430
# the next line.
430431
# When you get an error for a missing "perl.exp" file, try creating an empty
431432
# one: "touch perl.exp".
432-
# This requires at least "small" features, "tiny" doesn't work.
433+
# This requires at least "normal" features, "tiny" and "small" don't work.
433434
#CONF_OPT_PERL = --enable-perlinterp
434435
#CONF_OPT_PERL = --enable-perlinterp=dynamic
435436

436437
# PYTHON
437-
# Uncomment this when you want to include the Python interface.
438-
# Requires small features or better, fails with tiny features.
438+
# Uncomment lines here when you want to include the Python interface.
439+
# This requires at least "normal" features, "tiny" and "small" don't work.
439440
# NOTE: This may cause threading to be enabled, which has side effects (such
440441
# as using different libraries and debugging becomes more difficult).
441-
# NOTE: Using this together with Perl may cause a crash in initialization.
442442
# For Python3 support make a symbolic link in /usr/local/bin:
443443
# ln -s python3 python3.1
444444
# If both python2.x and python3.x are enabled then the linking will be via
@@ -454,6 +454,7 @@ CClink = $(CC)
454454
# Uncomment this when you want to include the Ruby interface.
455455
# First one for static linking, second one for loading when used.
456456
# Note: you need the development package (e.g., ruby1.9.1-dev on Ubuntu).
457+
# This requires at least "normal" features, "tiny" and "small" don't work.
457458
#CONF_OPT_RUBY = --enable-rubyinterp
458459
#CONF_OPT_RUBY = --enable-rubyinterp=dynamic
459460
#CONF_OPT_RUBY = --enable-rubyinterp --with-ruby-command=ruby1.9.1
@@ -617,7 +618,7 @@ AUTOCONF = autoconf
617618
#PURIFY = purify
618619

619620
# VALGRIND - remove the # to use valgrind for memory leaks and access errors.
620-
# Used for the unittest targets.
621+
# Used for the unittest targets.
621622
# VALGRIND = valgrind --tool=memcheck --leak-check=yes --num-callers=25 --log-file=valgrind.$@
622623

623624
# NBDEBUG - debugging the netbeans interface.
@@ -649,15 +650,15 @@ LINT_OPTIONS = -beprxzF
649650
# coverage information. (provided by Yegappan Lakshmanan)
650651
# 1. make clean, run configure and build Vim as usual.
651652
# 2. Generate the baseline code coverage information:
652-
# $ lcov -c -i -b . -d objects -o objects/coverage_base.info
653+
# $ lcov -c -i -b . -d objects -o objects/coverage_base.info
653654
# 3. Run "make test" to run the unit tests. The code coverage information will
654655
# be generated in the src/objects directory.
655656
# 4. Generate the code coverage information from the tests:
656-
# $ lcov -c -b . -d objects/ -o objects/coverage_test.info
657+
# $ lcov -c -b . -d objects/ -o objects/coverage_test.info
657658
# 5. Combine the baseline and test code coverage data:
658-
# $ lcov -a objects/coverage_base.info -a objects/coverage_test.info -o objects/coverage_total.info
659+
# $ lcov -a objects/coverage_base.info -a objects/coverage_test.info -o objects/coverage_total.info
659660
# 6. Process the test coverage data and generate a report in html:
660-
# $ genhtml objects/coverage_total.info -o objects
661+
# $ genhtml objects/coverage_total.info -o objects
661662
# 7. Open the objects/index.html file in a web browser to view the coverage
662663
# information.
663664
#
@@ -1424,6 +1425,11 @@ PROTO_FLAGS = -d -E"$(CPP)" $(NO_ATTR)
14241425

14251426
SHELL = /bin/sh
14261427

1428+
# We would normally use "mkdir -p" but it doesn't work properly everywhere.
1429+
# Using AC_PROG_MKDIR_P in configure.ac has a problem with the "auto"
1430+
# directory. Always use the install-sh script, it's slower but reliable.
1431+
MKDIR_P = $(SHELL) install-sh -c -d
1432+
14271433
.SUFFIXES:
14281434
.SUFFIXES: .c .o .pro
14291435

@@ -1901,20 +1907,12 @@ autoconf:
19011907
-rm -rf autom4te.cache
19021908
-rm -f auto/config.status auto/config.cache
19031909

1904-
# Run Perl to generate the Ex command lookup table. This only needs to be run
1905-
# when a command name has been added or changed.
1906-
# NOTE: Only works when perl and vim executables are available
1910+
# Run vim script to generate the Ex command lookup table.
1911+
# This only needs to be run when a command name has been added or changed.
1912+
# If this fails because you don't have Vim yet, first build and install Vim
1913+
# without changes.
19071914
cmdidxs: ex_cmds.h
1908-
if test X`perl -e "print 123"` = "X123"; then \
1909-
vim ex_docmd.c -c '/Beginning.*create_cmdidxs/,/End.*create_cmdidxs/! perl create_cmdidxs.pl' -c wq; \
1910-
else \
1911-
echo Cannot run Perl; \
1912-
fi
1913-
1914-
# Re-execute this Makefile to include the new auto/config.mk produced by
1915-
# configure Only used when typing "make" with a fresh auto/config.mk.
1916-
myself:
1917-
$(MAKE) -f Makefile all
1915+
vim -u NONE -i NONE -X -S create_cmdidxs.vim
19181916

19191917

19201918
# The normal command to compile a .c file to its .o file.
@@ -2583,7 +2581,7 @@ DESKTOPPATH = $(DESTDIR)$(DATADIR)/applications
25832581
KDEPATH = $(HOME)/.kde/share/icons
25842582
install-icons:
25852583
if test -n "$(DESTDIR)"; then \
2586-
$(SHELL) ./mkinstalldirs $(ICON48PATH) $(ICON32PATH) \
2584+
$(MKDIR_P) $(ICON48PATH) $(ICON32PATH) \
25872585
$(ICON16PATH) $(DESKTOPPATH); \
25882586
fi
25892587

@@ -2624,7 +2622,7 @@ $(DESTDIR)$(exec_prefix) $(DEST_BIN) \
26242622
$(DEST_LANG) $(DEST_KMAP) $(DEST_COMP) $(DEST_MACRO) \
26252623
$(DEST_PACK) $(DEST_TOOLS) $(DEST_TUTOR) $(DEST_SPELL) \
26262624
$(DEST_AUTO) $(DEST_AUTO)/xml $(DEST_PLUG):
2627-
-$(SHELL) ./mkinstalldirs $@
2625+
$(MKDIR_P) $@
26282626
-chmod $(DIRMOD) $@
26292627

26302628
# create links from various names to vim. This is only done when the links
@@ -2787,7 +2785,8 @@ uninstall_runtime:
27872785
# Clean up all the files that have been produced, except configure's.
27882786
# We support common typing mistakes for Juergen! :-)
27892787
clean celan: testclean macvimclean
2790-
-rm -f *.o objects/* core $(VIMTARGET).core $(VIMTARGET) vim xxd/*.o
2788+
-rm -f *.o core $(VIMTARGET).core $(VIMTARGET) vim xxd/*.o
2789+
-rm -rf objects
27912790
-rm -f $(TOOLS) auto/osdef.h auto/pathdef.c auto/if_perl.c auto/gui_gtk_gresources.c auto/gui_gtk_gresources.h
27922791
-rm -f conftest* *~ auto/link.sed
27932792
-rm -f testdir/opt_test.vim
@@ -2804,25 +2803,25 @@ clean celan: testclean macvimclean
28042803
SHADOWDIR = shadow
28052804

28062805
shadow: runtime pixmaps
2807-
mkdir $(SHADOWDIR)
2808-
cd $(SHADOWDIR); ln -s ../*.[chm] ../*.in ../*.sh ../*.xs ../*.xbm ../gui_gtk_res.xml ../toolcheck ../proto ../vimtutor ../gvimtutor ../mkinstalldirs .
2806+
$(MKDIR_P) $(SHADOWDIR)
2807+
cd $(SHADOWDIR); ln -s ../*.[chm] ../*.in ../*.sh ../*.xs ../*.xbm ../gui_gtk_res.xml ../toolcheck ../proto ../vimtutor ../gvimtutor ../install-sh .
28092808
mkdir $(SHADOWDIR)/auto
28102809
cd $(SHADOWDIR)/auto; ln -s ../../auto/configure .
2811-
mkdir $(SHADOWDIR)/po
2810+
$(MKDIR_P) $(SHADOWDIR)/po
28122811
cd $(SHADOWDIR)/po; ln -s ../../po/*.po ../../po/*.mak ../../po/*.vim ../../po/Makefile .
28132812
cd $(SHADOWDIR); rm -f auto/link.sed
28142813
cp Makefile configure $(SHADOWDIR)
28152814
rm -f $(SHADOWDIR)/auto/config.mk $(SHADOWDIR)/config.mk.dist
28162815
cp config.mk.dist $(SHADOWDIR)/auto/config.mk
28172816
cp config.mk.dist $(SHADOWDIR)
2818-
mkdir $(SHADOWDIR)/xxd
2817+
$(MKDIR_P) $(SHADOWDIR)/xxd
28192818
cd $(SHADOWDIR)/xxd; ln -s ../../xxd/*.[ch] ../../xxd/Make* .
28202819
if test -d $(RSRC_DIR); then \
28212820
cd $(SHADOWDIR); \
28222821
ln -s ../infplist.xml .; \
28232822
ln -s ../$(RSRC_DIR) ../os_mac.rsr.hqx ../dehqx.py .; \
28242823
fi
2825-
mkdir $(SHADOWDIR)/testdir
2824+
$(MKDIR_P) $(SHADOWDIR)/testdir
28262825
cd $(SHADOWDIR)/testdir; ln -s ../../testdir/Makefile \
28272826
../../testdir/Make_all.mak \
28282827
../../testdir/README.txt \
@@ -2959,7 +2958,7 @@ auto/gui_gtk_gresources.h: gui_gtk_res.xml $(GUI_GTK_RES_INPUTS)
29592958
objects: objects/.dirstamp
29602959

29612960
objects/.dirstamp:
2962-
mkdir -p objects
2961+
$(MKDIR_P) objects
29632962
touch objects/.dirstamp
29642963

29652964
# All object files depend on the objects directory, so that parallel make
@@ -3299,8 +3298,7 @@ install_macosx: gui_bundle
32993298
# Generate the help tags file now, it won't work with "make installruntime".
33003299
-@srcdir=`pwd`; cd $(HELPSOURCE); $(MAKE) VIMEXE=$$srcdir/$(VIMTARGET) vimtags
33013300
# Install the runtime files. Recursive!
3302-
-mkdir -p $(DESTDIR)$(prefix)/$(RESDIR)/vim/runtime
3303-
# -mkdir $(DESTDIR)$(prefix)/$(APPDIR)/bin
3301+
$(MKDIR_P) $(DESTDIR)$(prefix)/$(RESDIR)/vim/runtime
33043302
srcdir=`pwd`; $(MAKE) -f Makefile installruntime \
33053303
VIMEXE=$$srcdir/$(VIMTARGET) \
33063304
prefix=$(DESTDIR)$(prefix)/$(RESDIR)$(VIMDIR) \
@@ -3318,16 +3316,16 @@ gui_bundle: $(RESDIR) bundle-dir bundle-executable bundle-info bundle-resource \
33183316
bundle-language
33193317

33203318
$(RESDIR):
3321-
mkdir -p $@
3319+
$(MKDIR_P) $@
33223320

33233321
bundle-dir: $(APPDIR)/Contents $(VIMTARGET)
33243322
# Make a link to the runtime directory, so that we can try out the executable
33253323
# without installing it.
3326-
mkdir -p $(RESDIR)/vim
3324+
$(MKDIR_P) $(RESDIR)/vim
33273325
-ln -s `pwd`/../runtime $(RESDIR)/vim
33283326

33293327
bundle-executable: $(VIMTARGET)
3330-
mkdir -p $(APPDIR)/Contents/MacOS
3328+
$(MKDIR_P) $(APPDIR)/Contents/MacOS
33313329
cp $(VIMTARGET) $(APPDIR)/Contents/MacOS/$(VIMTARGET)
33323330

33333331
bundle-info: bundle-dir
@@ -3358,8 +3356,8 @@ bundle-rsrc: os_mac.rsr.hqx
33583356
bundle-language: bundle-dir
33593357

33603358
$(APPDIR)/Contents:
3361-
-$(SHELL) ./mkinstalldirs $(APPDIR)/Contents/MacOS
3362-
-$(SHELL) ./mkinstalldirs $(RESDIR)/English.lproj
3359+
$(MKDIR_P) $(APPDIR)/Contents/MacOS
3360+
$(MKDIR_P) $(RESDIR)/English.lproj
33633361

33643362

33653363
##############################################################################

src/auto/configure

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3456,7 +3456,7 @@ ac_cpp='$CPP $CPPFLAGS'
34563456
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34573457
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34583458
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459-
ac_ext=c
3459+
ac_ext=c
34603460
ac_cpp='$CPP $CPPFLAGS'
34613461
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34623462
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
@@ -3733,7 +3733,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37333733

37343734
fi
37353735
rm -f conftest*
3736-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3736+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
37373737
$as_echo_n "checking for fgrep... " >&6; }
37383738
if ${ac_cv_path_FGREP+:} false; then :
37393739
$as_echo_n "(cached) " >&6
@@ -3799,7 +3799,7 @@ fi
37993799
$as_echo "$ac_cv_path_FGREP" >&6; }
38003800
FGREP="$ac_cv_path_FGREP"
38013801

3802-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3802+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
38033803
$as_echo_n "checking for library containing strerror... " >&6; }
38043804
if ${ac_cv_search_strerror+:} false; then :
38053805
$as_echo_n "(cached) " >&6
@@ -3854,7 +3854,7 @@ if test "$ac_res" != no; then :
38543854
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
38553855

38563856
fi
3857-
for ac_prog in gawk mawk nawk awk
3857+
for ac_prog in gawk mawk nawk awk
38583858
do
38593859
# Extract the first word of "$ac_prog", so it can be a program name with args.
38603860
set dummy $ac_prog; ac_word=$2

src/config.mk.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
the first targets to make vim are: scratch config myself
1+
the first target to make vim is: reconfig
22
srcdir = .
33
VIMNAME = vim
44
EXNAME = ex

src/configure.ac

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ AC_DEFINE(UNIX)
1111
AC_PROG_MAKE_SET
1212

1313
dnl Checks for programs.
14-
AC_PROG_CC dnl required by almost everything
15-
AC_PROG_CPP dnl required by header file checks
16-
AC_PROGRAM_EGREP dnl required by AC_EGREP_CPP
17-
AC_PROG_FGREP dnl finds working grep -F
18-
AC_ISC_POSIX dnl required by AC_C_CROSS
19-
AC_PROG_AWK dnl required for "make html" in ../doc
14+
AC_PROG_CC dnl required by almost everything
15+
AC_PROG_CPP dnl required by header file checks
16+
AC_PROGRAM_EGREP dnl required by AC_EGREP_CPP
17+
AC_PROG_FGREP dnl finds working grep -F
18+
AC_ISC_POSIX dnl required by AC_C_CROSS
19+
AC_PROG_AWK dnl required for "make html" in ../doc
2020

2121
dnl Don't strip if we don't have it
2222
AC_CHECK_PROG(STRIP, strip, strip, :)

src/create_cmdidxs.pl

Lines changed: 0 additions & 75 deletions
This file was deleted.

0 commit comments

Comments
 (0)