]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.0914: MS-Windows: cannot specify a "modified by" text v8.2.0914
authorBram Moolenaar <Bram@vim.org>
Sat, 6 Jun 2020 14:18:46 +0000 (16:18 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 6 Jun 2020 14:18:46 +0000 (16:18 +0200)
Problem:    MS-Windows: cannot specify a "modified by" text.
Solution:   Add MODIFIED_BY in the MSVC build file.  (Chen Lei, closes #1275)

src/Make_mvc.mak
src/version.c

index 8559c9dc29ecf017f1ba2fca15d84409aa5c3819..3239974c9f408b0d0bf2544d738922a356949778 100644 (file)
@@ -23,6 +23,8 @@
 #
 #      Feature Set: FEATURES=[TINY, SMALL, NORMAL, BIG, HUGE] (default is HUGE)
 #
+#      Name to add to the version: MODIFIED_BY=[name of modifier]
+#
 #      GUI interface: GUI=yes (default is no)
 #
 #      GUI with DirectWrite (DirectX): DIRECTX=yes
@@ -1244,6 +1246,13 @@ CFLAGS = $(CFLAGS) -DMSWINPS
 #
 CFLAGS = $(CFLAGS) -DFEAT_$(FEATURES)
 
+#
+# MODIFIED_BY - Name of who modified a release version
+#
+!if "$(MODIFIED_BY)" != ""
+CFLAGS = $(CFLAGS) -DMODIFIED_BY=\"$(MODIFIED_BY)\"
+!endif
+
 #
 # Always generate the .pdb file, so that we get debug symbols that can be used
 # on a crash (doesn't add overhead to the executable).
@@ -1852,14 +1861,18 @@ $(OUTDIR)/vterm_vterm.obj: $(OUTDIR) libvterm/src/vterm.c $(TERM_DEPS)
        $(CCCTERM) /Fo$@ libvterm/src/vterm.c
 
 
-# $CFLAGS may contain backslashes and double quotes, escape them both.
+# $CFLAGS may contain backslashes, quotes and chevrons, escape them all.
 E0_CFLAGS = $(CFLAGS:\=\\)
-E_CFLAGS = $(E0_CFLAGS:"=\")
+E00_CFLAGS = $(E0_CFLAGS:"=\")
 # ") stop the string
-# $LINKARGS2 may contain backslashes and double quotes, escape them both.
+E000_CFLAGS = $(E00_CFLAGS:<=^^<)
+E_CFLAGS = $(E000_CFLAGS:>=^^>)
+# $LINKARGS2 may contain backslashes, quotes and chevrons, escape them all.
 E0_LINKARGS2 = $(LINKARGS2:\=\\)
-E_LINKARGS2 = $(E0_LINKARGS2:"=\")
+E00_LINKARGS2 = $(E0_LINKARGS2:"=\")
 # ") stop the string
+E000_LINKARGS2 = $(E00_LINKARGS2:<=^^<)
+E_LINKARGS2 = $(E000_LINKARGS2:>=^^>)
 
 $(PATHDEF_SRC): Make_mvc.mak
        @echo creating $(PATHDEF_SRC)
index 2b9bd7732c541194bcb736a38cd97c71b7b036e5..7a4afff37eff01ca90aab1a4e61036c46e972acf 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    914,
 /**/
     913,
 /**/