Skip to content

Commit 44433da

Browse files
committed
patch 8.2.4893: distributed import files are not installed
Problem: Distributed import files are not installed. Solution: Add rules to Makefile and NSIS.
1 parent ec89223 commit 44433da

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

nsis/gvim.nsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,9 @@ Section "$(str_section_exe)" id_section_exe
403403
SetOutPath $0\autoload\xml
404404
File ${VIMRT}\autoload\xml\*.*
405405

406+
SetOutPath $0\import\dist
407+
File ${VIMRT}\import\dist\*.*
408+
406409
SetOutPath $0\bitmaps
407410
File ${VIMSRC}\vim.ico
408411

@@ -1044,6 +1047,7 @@ Section "un.$(str_unsection_exe)" id_unsection_exe
10441047
RMDir /r $0\compiler
10451048
RMDir /r $0\doc
10461049
RMDir /r $0\ftplugin
1050+
RMDir /r $0\import
10471051
RMDir /r $0\indent
10481052
RMDir /r $0\macros
10491053
RMDir /r $0\pack

src/Makefile

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,6 +1052,7 @@ COLSUBDIR = /colors
10521052
SYNSUBDIR = /syntax
10531053
INDSUBDIR = /indent
10541054
AUTOSUBDIR = /autoload
1055+
IMPORTSUBDIR = /import
10551056
PLUGSUBDIR = /plugin
10561057
FTPLUGSUBDIR = /ftplugin
10571058
LANGSUBDIR = /lang
@@ -1074,6 +1075,7 @@ PODIR = po
10741075
### SYNSUBLOC location for syntax files
10751076
### INDSUBLOC location for indent files
10761077
### AUTOSUBLOC location for standard autoload files
1078+
### IMPORTSUBLOC location for standard import files
10771079
### PLUGSUBLOC location for standard plugin files
10781080
### FTPLUGSUBLOC location for ftplugin files
10791081
### LANGSUBLOC location for language files
@@ -1096,6 +1098,7 @@ COLSUBLOC = $(VIMRTLOC)$(COLSUBDIR)
10961098
SYNSUBLOC = $(VIMRTLOC)$(SYNSUBDIR)
10971099
INDSUBLOC = $(VIMRTLOC)$(INDSUBDIR)
10981100
AUTOSUBLOC = $(VIMRTLOC)$(AUTOSUBDIR)
1101+
IMPORTSUBLOC = $(VIMRTLOC)$(IMPORTSUBDIR)
10991102
PLUGSUBLOC = $(VIMRTLOC)$(PLUGSUBDIR)
11001103
FTPLUGSUBLOC = $(VIMRTLOC)$(FTPLUGSUBDIR)
11011104
LANGSUBLOC = $(VIMRTLOC)$(LANGSUBDIR)
@@ -1200,6 +1203,9 @@ INDSOURCE = ../runtime/indent
12001203
# Where to copy the standard plugin files from
12011204
AUTOSOURCE = ../runtime/autoload
12021205

1206+
# Where to copy the standard import files from
1207+
IMPORTSOURCE = ../runtime/import
1208+
12031209
# Where to copy the standard plugin files from
12041210
PLUGSOURCE = ../runtime/plugin
12051211

@@ -1475,6 +1481,7 @@ DEST_COL = $(DESTDIR)$(COLSUBLOC)
14751481
DEST_SYN = $(DESTDIR)$(SYNSUBLOC)
14761482
DEST_IND = $(DESTDIR)$(INDSUBLOC)
14771483
DEST_AUTO = $(DESTDIR)$(AUTOSUBLOC)
1484+
DEST_IMPORT = $(DESTDIR)$(IMPORTSUBLOC)
14781485
DEST_PLUG = $(DESTDIR)$(PLUGSUBLOC)
14791486
DEST_FTP = $(DESTDIR)$(FTPLUGSUBLOC)
14801487
DEST_LANG = $(DESTDIR)$(LANGSUBLOC)
@@ -2373,6 +2380,7 @@ installruntime: installrtbase installmacros installpack installtutor installspel
23732380
installrtbase: $(HELPSOURCE)/vim.1 $(DEST_VIM) $(DEST_RT) \
23742381
$(DEST_HELP) $(DEST_PRINT) $(DEST_COL) $(DEST_SYN) $(DEST_IND) \
23752382
$(DEST_FTP) $(DEST_AUTO) $(DEST_AUTO)/dist $(DEST_AUTO)/xml \
2383+
$(DEST_IMPORT) $(DEST_IMPORT)/dist \
23762384
$(DEST_PLUG) $(DEST_TUTOR) $(DEST_SPELL) $(DEST_COMP)
23772385
-$(SHELL) ./installman.sh install $(DEST_MAN) "" $(INSTALLMANARGS)
23782386
# Generate the help tags with ":helptags" to handle all languages.
@@ -2451,6 +2459,9 @@ installrtbase: $(HELPSOURCE)/vim.1 $(DEST_VIM) $(DEST_RT) \
24512459
cd $(DEST_AUTO)/dist; chmod $(HELPMOD) *.vim
24522460
cd $(AUTOSOURCE)/xml; $(INSTALL_DATA) *.vim $(DEST_AUTO)/xml
24532461
cd $(DEST_AUTO)/xml; chmod $(HELPMOD) *.vim
2462+
# install the standard import files
2463+
cd $(IMPORTSOURCE)/dist; $(INSTALL_DATA) *.vim $(DEST_IMPORT)/dist
2464+
cd $(DEST_IMPORT)/dist; chmod $(HELPMOD) *.vim
24542465
# install the standard plugin files
24552466
cd $(PLUGSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_PLUG)
24562467
cd $(DEST_PLUG); chmod $(HELPMOD) *.vim README.txt
@@ -2686,7 +2697,8 @@ $(DESTDIR)$(exec_prefix) $(DEST_BIN) \
26862697
$(DEST_PRINT) $(DEST_COL) $(DEST_SYN) $(DEST_IND) $(DEST_FTP) \
26872698
$(DEST_LANG) $(DEST_KMAP) $(DEST_COMP) $(DEST_MACRO) \
26882699
$(DEST_PACK) $(DEST_TOOLS) $(DEST_TUTOR) $(DEST_SPELL) \
2689-
$(DEST_AUTO) $(DEST_AUTO)/dist $(DEST_AUTO)/xml $(DEST_PLUG):
2700+
$(DEST_AUTO) $(DEST_AUTO)/dist $(DEST_AUTO)/xml \
2701+
$(DEST_IMPORT) $(DEST_IMPORT)/dist $(DEST_PLUG):
26902702
$(MKDIR_P) $@
26912703
-chmod $(DIRMOD) $@
26922704

@@ -2872,8 +2884,10 @@ uninstall_runtime:
28722884
-rm -rf $(DEST_FTP)/*.vim $(DEST_FTP)/README.txt $(DEST_FTP)/logtalk.dict
28732885
-rm -f $(DEST_AUTO)/*.vim $(DEST_AUTO)/README.txt
28742886
-rm -f $(DEST_AUTO)/dist/*.vim $(DEST_AUTO)/xml/*.vim
2887+
-rm -f $(DEST_IMPORT)/dist/*.vim
28752888
-rm -f $(DEST_PLUG)/*.vim $(DEST_PLUG)/README.txt
28762889
-rmdir $(DEST_FTP) $(DEST_AUTO)/dist $(DEST_AUTO)/xml $(DEST_AUTO)
2890+
-rmdir $(DEST_IMPORT)/dist $(DEST_IMPORT)
28772891
-rmdir $(DEST_PLUG) $(DEST_RT)
28782892
# This will fail when other Vim versions are installed, no worries.
28792893
-rmdir $(DEST_VIM)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,8 @@ static char *(features[]) =
746746

747747
static int included_patches[] =
748748
{ /* Add new patch number below this line */
749+
/**/
750+
4893,
749751
/**/
750752
4892,
751753
/**/

0 commit comments

Comments
 (0)