]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1768: Makefile does not uninstall global plugins v9.1.1768
authorChristian Brabandt <cb@256bit.org>
Wed, 17 Sep 2025 20:20:45 +0000 (20:20 +0000)
committerChristian Brabandt <cb@256bit.org>
Wed, 17 Sep 2025 20:22:41 +0000 (20:22 +0000)
Problem:  Makefile does not uninstall global plugins
          (after v9.1.1757)
Solution: Uninstall global plugins before installing them,
          so that old files are not carried around and loaded
          when no longer used.

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/Makefile
src/version.c

index d1b08be257d01757287d5bfa3a7fd77637fdb35e..333a9121cd79454af73964f586c43012f9a145e2 100644 (file)
@@ -2474,7 +2474,8 @@ installrtbase: $(HELPSOURCE)/vim.1 $(DEST_VIM) $(VIMTARGET) $(DEST_RT) \
 # install the standard import files
        cd $(IMPORTSOURCE)/dist; $(INSTALL_DATA) *.vim $(DEST_IMPORT)/dist
        cd $(DEST_IMPORT)/dist; chmod $(HELPMOD) *.vim
-# install the standard plugin files
+# install the standard plugin files, but first remove existing ones
+       -rm -f $(DEST_PLUG)/*.vim
        cd $(PLUGSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_PLUG)
        cd $(DEST_PLUG); chmod $(HELPMOD) *.vim README.txt
 # install the ftplugin files
index ea120ceaf0a2b15d07d88e8b950891226c58f15d..b7531bd14abb73e5813625ff15f850ff80e83134 100644 (file)
@@ -724,6 +724,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1768,
 /**/
     1767,
 /**/