forked from aniani/vim
patch 9.1.0527: inconsistent parameter in Makefiles for Vim executable
Problem: inconsistent parameter in Makefiles for Vim executable
Solution: consistently use $VIMPROG across all Makefiles
(RestorerZ)
closes: #15099
Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
8ccb89016e
commit
cd33faf614
@@ -1435,7 +1435,7 @@ test:
|
||||
|
||||
testgvim testgui:
|
||||
cd testdir
|
||||
$(MAKE) /NOLOGO -f Make_mvc.mak VIMPROG=..\gvim
|
||||
$(MAKE) /NOLOGO -f Make_mvc.mak "VIMPROG=..\gvim.exe"
|
||||
cd ..
|
||||
|
||||
testtiny:
|
||||
@@ -1445,7 +1445,7 @@ testtiny:
|
||||
|
||||
testgvimtiny:
|
||||
cd testdir
|
||||
$(MAKE) /NOLOGO -f Make_mvc.mak tiny VIMPROG=..\gvim
|
||||
$(MAKE) /NOLOGO -f Make_mvc.mak "VIMPROG=..\gvim.exe" tiny
|
||||
cd ..
|
||||
|
||||
testclean:
|
||||
|
||||
@@ -2189,7 +2189,7 @@ test check: unittests $(TERM_TEST) scripttests
|
||||
scripttests:
|
||||
$(MAKE) -f Makefile $(VIMTARGET)
|
||||
if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
|
||||
cd $(PODIR); $(MAKE) -f Makefile check VIM=../$(VIMTARGET); \
|
||||
cd $(PODIR); $(MAKE) -f Makefile check VIMPROG=../$(VIMTARGET); \
|
||||
fi
|
||||
-if test $(VIMTARGET) != vim -a ! -r vim; then \
|
||||
ln -s $(VIMTARGET) vim; \
|
||||
@@ -2357,7 +2357,7 @@ installrtbase: $(HELPSOURCE)/vim.1 $(DEST_VIM) $(VIMTARGET) $(DEST_RT) \
|
||||
# We can assume Vim was build, but it may not have been installed,
|
||||
# thus use the executable in the current directory.
|
||||
-@BUILD_DIR="`pwd`"; cd $(HELPSOURCE); if test -z "$(CROSS_COMPILING)"; then \
|
||||
$(MAKE) VIMEXE="$$BUILD_DIR/$(VIMTARGET)" vimtags; fi
|
||||
$(MAKE) VIMPROG="$$BUILD_DIR/$(VIMTARGET)" vimtags; fi
|
||||
cd $(HELPSOURCE); \
|
||||
files=`ls *.txt tags`; \
|
||||
files="$$files `ls *.??x tags-?? 2>/dev/null || true`"; \
|
||||
|
||||
@@ -16,7 +16,7 @@ endif
|
||||
include Make_all.mak
|
||||
|
||||
PACKAGE = vim
|
||||
VIM = ../vim
|
||||
VIMPROG = ../vim
|
||||
|
||||
# Uncomment one of the lines below or modify it to put the path to your
|
||||
# gettext binaries
|
||||
@@ -64,18 +64,18 @@ PO_INPUTLIST = \
|
||||
vim.desktop.in
|
||||
|
||||
first_time: $(PO_INPUTLIST) $(PO_VIM_INPUTLIST)
|
||||
$(VIM) -u NONE --not-a-term -S tojavascript.vim $(LANGUAGE).pot $(PO_VIM_INPUTLIST)
|
||||
$(VIMPROG) -u NONE --not-a-term -S tojavascript.vim $(LANGUAGE).pot $(PO_VIM_INPUTLIST)
|
||||
$(XGETTEXT) --default-domain=$(LANGUAGE) \
|
||||
--add-comments $(XGETTEXT_KEYWORDS) $(PO_INPUTLIST) $(PO_VIM_JSLIST)
|
||||
$(VIM) -u NONE --not-a-term -S fixfilenames.vim $(LANGUAGE).pot $(PO_VIM_INPUTLIST)
|
||||
$(VIMPROG) -u NONE --not-a-term -S fixfilenames.vim $(LANGUAGE).pot $(PO_VIM_INPUTLIST)
|
||||
$(RM) *.js
|
||||
|
||||
$(PACKAGE).pot: $(PO_INPUTLIST) $(PO_VIM_INPUTLIST)
|
||||
$(VIM) -u NONE --not-a-term -S tojavascript.vim $(PACKAGE).pot $(PO_VIM_INPUTLIST)
|
||||
$(VIMPROG) -u NONE --not-a-term -S tojavascript.vim $(PACKAGE).pot $(PO_VIM_INPUTLIST)
|
||||
$(XGETTEXT) --default-domain=$(PACKAGE) \
|
||||
--add-comments $(XGETTEXT_KEYWORDS) $(PO_INPUTLIST) $(PO_VIM_JSLIST)
|
||||
$(MV) $(PACKAGE).po $(PACKAGE).pot
|
||||
$(VIM) -u NONE --not-a-term -S fixfilenames.vim $(PACKAGE).pot $(PO_VIM_INPUTLIST)
|
||||
$(VIMPROG) -u NONE --not-a-term -S fixfilenames.vim $(PACKAGE).pot $(PO_VIM_INPUTLIST)
|
||||
$(RM) *.js
|
||||
|
||||
# Don't add a dependency here, we only want to update the .po files manually
|
||||
|
||||
@@ -23,9 +23,9 @@ include Make_all.mak
|
||||
|
||||
PACKAGE = vim
|
||||
ifeq (sh.exe, $(SHELL))
|
||||
VIM = ..\vim
|
||||
VIMPROG = ..\vim
|
||||
else
|
||||
VIM = ../vim
|
||||
VIMPROG = ../vim
|
||||
endif
|
||||
|
||||
# Uncomment one of the lines below or modify it to put the path to your
|
||||
@@ -77,18 +77,18 @@ PO_INPUTLIST = \
|
||||
vim.desktop.in
|
||||
|
||||
first_time: $(PO_INPUTLIST) $(PO_VIM_INPUTLIST)
|
||||
$(VIM) -u NONE --not-a-term -S tojavascript.vim $(LANGUAGE).pot $(PO_VIM_INPUTLIST)
|
||||
$(VIMPROG) -u NONE --not-a-term -S tojavascript.vim $(LANGUAGE).pot $(PO_VIM_INPUTLIST)
|
||||
$(XGETTEXT) --default-domain=$(LANGUAGE) \
|
||||
--add-comments $(XGETTEXT_KEYWORDS) $(PO_INPUTLIST) $(PO_VIM_JSLIST)
|
||||
$(VIM) -u NONE --not-a-term -S fixfilenames.vim $(LANGUAGE).pot $(PO_VIM_INPUTLIST)
|
||||
$(VIMPROG) -u NONE --not-a-term -S fixfilenames.vim $(LANGUAGE).pot $(PO_VIM_INPUTLIST)
|
||||
$(RM) *.js
|
||||
|
||||
$(PACKAGE).pot: $(PO_INPUTLIST) $(PO_VIM_INPUTLIST)
|
||||
$(VIM) -u NONE --not-a-term -S tojavascript.vim $(PACKAGE).pot $(PO_VIM_INPUTLIST)
|
||||
$(VIMPROG) -u NONE --not-a-term -S tojavascript.vim $(PACKAGE).pot $(PO_VIM_INPUTLIST)
|
||||
$(XGETTEXT) --default-domain=$(PACKAGE) \
|
||||
--add-comments $(XGETTEXT_KEYWORDS) $(PO_INPUTLIST) $(PO_VIM_JSLIST)
|
||||
$(MV) $(PACKAGE).po $(PACKAGE).pot
|
||||
$(VIM) -u NONE --not-a-term -S fixfilenames.vim $(PACKAGE).pot $(PO_VIM_INPUTLIST)
|
||||
$(VIMPROG) -u NONE --not-a-term -S fixfilenames.vim $(PACKAGE).pot $(PO_VIM_INPUTLIST)
|
||||
$(RM) *.js
|
||||
|
||||
# Don't add a dependency here, we only want to update the .po files manually
|
||||
|
||||
@@ -40,7 +40,7 @@ VIMRUNTIME = ..\..\runtime
|
||||
PACKAGE = vim
|
||||
# Correct the following line for the where executeable file vim is
|
||||
# installed. Please do not put the path in quotes.
|
||||
VIM = ..\vim.exe
|
||||
VIMPROG = ..\vim.exe
|
||||
|
||||
# Correct the following line for the directory where gettext et al is
|
||||
# installed. Please do not put the path in quotes.
|
||||
@@ -102,7 +102,7 @@ originals : $(MOFILES)
|
||||
converted: $(MOCONVERTED)
|
||||
|
||||
.po.ck:
|
||||
"$(VIM)" -u NONE --noplugins -e -s -X --cmd "set enc=utf-8" -S check.vim \
|
||||
"$(VIMPROG)" -u NONE --noplugins -e -s -X --cmd "set enc=utf-8" -S check.vim \
|
||||
-c "if error == 0 | q | else | num 2 | cq | endif" $<
|
||||
$(TOUCH_TARGET)
|
||||
|
||||
@@ -496,25 +496,25 @@ files: $(PO_INPUTLIST)
|
||||
$(LS) $(LSFLAGS) $(PO_INPUTLIST) > .\files
|
||||
|
||||
first_time: files
|
||||
"$(VIM)" -u NONE --not-a-term -S tojavascript.vim $(LANGUAGE).po \
|
||||
"$(VIMPROG)" -u NONE --not-a-term -S tojavascript.vim $(LANGUAGE).po \
|
||||
$(PO_VIM_INPUTLIST)
|
||||
set OLD_PO_FILE_INPUT=yes
|
||||
set OLD_PO_FILE_OUTPUT=yes
|
||||
$(XGETTEXT) --default-domain=$(LANGUAGE) --add-comments $(XGETTEXT_KEYWORDS) \
|
||||
--files-from=.\files $(PO_VIM_JSLIST)
|
||||
"$(VIM)" -u NONE --not-a-term -S fixfilenames.vim $(LANGUAGE).po \
|
||||
"$(VIMPROG)" -u NONE --not-a-term -S fixfilenames.vim $(LANGUAGE).po \
|
||||
$(PO_VIM_INPUTLIST)
|
||||
$(RM) *.js
|
||||
|
||||
$(PACKAGE).pot: files
|
||||
"$(VIM)" -u NONE --not-a-term -S tojavascript.vim $(PACKAGE).pot \
|
||||
"$(VIMPROG)" -u NONE --not-a-term -S tojavascript.vim $(PACKAGE).pot \
|
||||
$(PO_VIM_INPUTLIST)
|
||||
set OLD_PO_FILE_INPUT=yes
|
||||
set OLD_PO_FILE_OUTPUT=yes
|
||||
$(XGETTEXT) --default-domain=$(PACKAGE) --add-comments $(XGETTEXT_KEYWORDS) \
|
||||
--files-from=.\files $(PO_VIM_JSLIST)
|
||||
$(MV) $(PACKAGE).po $(PACKAGE).pot
|
||||
"$(VIM)" -u NONE --not-a-term -S fixfilenames.vim $(PACKAGE).pot \
|
||||
"$(VIMPROG)" -u NONE --not-a-term -S fixfilenames.vim $(PACKAGE).pot \
|
||||
$(PO_VIM_INPUTLIST)
|
||||
$(RM) *.js
|
||||
|
||||
@@ -541,10 +541,10 @@ install-all: all
|
||||
"$(VIMRUNTIME)\lang\%%l\LC_MESSAGES\$(PACKAGE).mo"
|
||||
|
||||
cleanup-po: $(LANGUAGE).po
|
||||
"$(VIM)" -u NONE -e -X -S cleanup.vim -c wq $(LANGUAGE).po
|
||||
"$(VIMPROG)" -u NONE -e -X -S cleanup.vim -c wq $(LANGUAGE).po
|
||||
|
||||
cleanup-po-all: $(POFILES)
|
||||
!"$(VIM)" -u NONE -e -X -S cleanup.vim -c wq $**
|
||||
!"$(VIMPROG)" -u NONE -e -X -S cleanup.vim -c wq $**
|
||||
|
||||
clean: checkclean
|
||||
$(RM) *.mo
|
||||
|
||||
@@ -12,7 +12,7 @@ include $(PO_BASEDIR)/Make_all.mak
|
||||
|
||||
PACKAGE = vim
|
||||
SHELL = /bin/sh
|
||||
VIM = $(PO_BASEDIR)/../vim
|
||||
VIMPROG = $(PO_BASEDIR)/../vim
|
||||
|
||||
# MacOS sed is locale aware, set $LANG to avoid problems.
|
||||
SED = LANG=C sed
|
||||
@@ -41,7 +41,7 @@ converted: $(MOCONVERTED)
|
||||
$(MSGFMTCMD) -o $@ $<
|
||||
|
||||
.po.ck:
|
||||
$(VIM) -u NONE --noplugins -e -s -X --cmd "set enc=utf-8" -S check.vim \
|
||||
$(VIMPROG) -u NONE --noplugins -e -s -X --cmd "set enc=utf-8" -S check.vim \
|
||||
-c "if error == 0 | q | else | num 2 | cq | endif" $<
|
||||
touch $@
|
||||
|
||||
@@ -262,13 +262,13 @@ PO_INPUTLIST = \
|
||||
|
||||
$(PACKAGE).pot: $(PO_INPUTLIST) $(PO_VIM_INPUTLIST)
|
||||
# Convert the Vim scripts to (what looks like) Javascript.
|
||||
$(VIM) -u NONE --not-a-term -S $(PO_BASEDIR)/tojavascript.vim $(PACKAGE).pot $(PO_VIM_INPUTLIST)
|
||||
$(VIMPROG) -u NONE --not-a-term -S $(PO_BASEDIR)/tojavascript.vim $(PACKAGE).pot $(PO_VIM_INPUTLIST)
|
||||
# Create vim.pot.
|
||||
$(XGETTEXT) --default-domain=$(PACKAGE) --add-comments \
|
||||
$(XGETTEXT_KEYWORDS) $(PO_INPUTLIST) $(PO_VIM_JSLIST)
|
||||
mv -f $(PACKAGE).po $(PACKAGE).pot
|
||||
# Fix Vim scripts names, so that "gf" works.
|
||||
$(VIM) -u NONE --not-a-term -S $(PO_BASEDIR)/fixfilenames.vim $(PACKAGE).pot $(PO_VIM_INPUTLIST)
|
||||
$(VIMPROG) -u NONE --not-a-term -S $(PO_BASEDIR)/fixfilenames.vim $(PACKAGE).pot $(PO_VIM_INPUTLIST)
|
||||
# Delete the temporary files.
|
||||
rm *.js
|
||||
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
|
||||
# Testing may be done with a debug build
|
||||
!IF EXIST(..\\vimd.exe) && !EXIST(..\\vim.exe)
|
||||
VIMPROG = ..\\vimd
|
||||
VIMPROG = ..\\vimd.exe
|
||||
!ELSE
|
||||
VIMPROG = ..\\vim
|
||||
VIMPROG = ..\\vim.exe
|
||||
!ENDIF
|
||||
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ test_vim9:
|
||||
|
||||
RM_ON_RUN = test.out X* viminfo
|
||||
RM_ON_START = test.ok benchmark.out
|
||||
RUN_VIM = VIMRUNTIME=$(SCRIPTSOURCE) $(VALGRIND) $(VIMPROG) -f $(GUI_FLAG) -u unix.vim $(NO_INITS) -s dotest.in
|
||||
RUN_VIMPROG = VIMRUNTIME=$(SCRIPTSOURCE) $(VALGRIND) $(VIMPROG) -f $(GUI_FLAG) -u unix.vim $(NO_INITS) -s dotest.in
|
||||
|
||||
# Delete files that may interfere with running tests. This includes some files
|
||||
# that may result from working on the tests, not only from running them.
|
||||
@@ -114,7 +114,7 @@ tinytests: $(SCRIPTS_TINY_OUT)
|
||||
@# 200 msec is sufficient, but only modern sleep supports a fraction of
|
||||
@# a second, fall back to a second if it fails.
|
||||
@-/bin/sh -c "sleep .2 > /dev/null 2>&1 || sleep 1"
|
||||
$(RUN_VIM) $*.in $(REDIR_TEST_TO_NULL)
|
||||
$(RUN_VIMPROG) $*.in $(REDIR_TEST_TO_NULL)
|
||||
|
||||
@# Check if the test.out file matches test.ok.
|
||||
@/bin/sh -c "if test -f test.out; then \
|
||||
|
||||
@@ -704,6 +704,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
527,
|
||||
/**/
|
||||
526,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user