Skip to content

Commit 2c15f6a

Browse files
committed
patch 7.4.1023
Problem: The distribution files for MS-Windows use CR-LF, which is inconsistent with what one gets from github. Solution: Use LF in the distribution files.
1 parent 43f837d commit 2c15f6a

2 files changed

Lines changed: 50 additions & 61 deletions

File tree

Makefile

Lines changed: 48 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@ all install uninstall tools config configure reconfig proto depend lint tags typ
6363
# amirt vim##rt.tgz runtime for Amiga
6464
# amibin vim##bin.tgz binary for Amiga
6565
#
66-
# os2bin vim##os2.zip binary for OS/2
67-
# (use RT from dosrt)
68-
#
6966
# farsi farsi##.zip Farsi fonts
7067
#
7168
# All output files are created in the "dist" directory. Existing files are
@@ -89,9 +86,9 @@ MINOR = 4
8986
#
9087
# - Update Vim version number. For a test version in: src/version.h, Contents,
9188
# MAJOR/MINOR above, VIMMAJOR and VIMMINOR in src/Makefile, README*.txt,
92-
# runtime/doc/*.txt and nsis/gvim.nsi. Other things in README_os2.txt. For a
93-
# minor/major version: src/GvimExt/GvimExt.reg, src/vim.def, src/vim16.def,
94-
# src/gvim.exe.mnf.
89+
# runtime/doc/*.txt and nsis/gvim.nsi.
90+
# For a minor/major version: src/GvimExt/GvimExt.reg, src/vim.def,
91+
# src/vim16.def, src/gvim.exe.mnf.
9592
# - Compile Vim with GTK, Perl, Python, Python3, TCL, Ruby, MZscheme, Lua (if
9693
# you can make it all work), Cscope and "huge" features. Exclude workshop
9794
# and SNiFF.
@@ -132,49 +129,58 @@ MINOR = 4
132129
# flag).
133130
# - "make amirt", "make amibin".
134131
#
135-
# PC:
132+
# MS-Windows:
136133
# - Run make on Unix to update the ".mo" files.
137-
# - "make dossrc" and "make dosrt". Unpack the archives on a PC.
138-
# Win32 console version:
139-
# - Set environment for Visual C++ 2008, e.g.: "msvc2008.bat" Or:
140-
# "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat".
134+
# - > make dossrc
135+
# > make dosrt
136+
# Unpack dist/vim##rt.zip and dist/vim##src.zip on an MS-Windows PC.
137+
# Win32 console version build:
138+
# - Set environment for Visual C++ 2008, e.g.:
139+
# > src/msvc2008.bat
140+
# Or:
141+
# > C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat
141142
# Or, when using the Visual C++ Toolkit 2003: "msvcsetup.bat" (adjust the
142143
# paths when necessary).
143144
# For Windows 98/ME the 2003 version is required, but then the executable
144145
# won't work on Windows 7 and 64 bit systems.
145-
# - "nmake -f Make_mvc.mak" (use the same path as for vcvars32.bat)
146+
# - > cd src
147+
# > nmake -f Make_mvc.mak
146148
# - Run the tests:
147-
# > rm testdir/*.out
149+
# > rm testdir/*.out testdir/*.res
148150
# > nmake -f Make_mvc.mak test
149151
# - check the output.
150152
# - Rename vim.exe to vimw32.exe, xxd/xxd.exe to xxdw32.exe.
151153
# - Rename vim.pdb to vimw32.pdb.
152154
# - Rename install.exe to installw32.exe and uninstal.exe to uninstalw32.exe.
153-
# Win32 GUI version:
154-
# - "nmake -f Make_mvc.mak GUI=yes"
155+
# Win32 GUI version build:
156+
# - > cd src
157+
# > nmake -f Make_mvc.mak GUI=yes
155158
# - Run the tests:
156-
# > cd testdir
157-
# > rm *.out
158-
# > nmake -f Make_dos.mak VIMPROG=..\gvim
159+
# > rm testdir/*.out testdir/*.res
160+
# > nmake -f Make_mvc.mak testgvim
159161
# - check the output.
160162
# - move "gvim.exe" to here (otherwise the OLE version will overwrite it).
161163
# - Move gvim.pdb to here.
162-
# - Delete vimrun.exe, install.exe and uninstal.exe.
163164
# - Copy "GvimExt/gvimext.dll" to here.
165+
# - Delete vimrun.exe, install.exe and uninstal.exe.
164166
# Win32 GUI version with OLE, PERL, TCL, PYTHON and dynamic IME:
165-
# - Run src/bigvim.bat ("nmake -f Make_mvc.mak GUI=yes OLE=yes IME=yes ...)
167+
# - Install the interfaces you want, see src/INSTALLpc.txt
168+
# - Build:
169+
# > cd src
170+
# Adjust bigvim.bat to match the version of each interface you want.
171+
# > bigvim.bat
166172
# - Run the tests:
167-
# > cd testdir
168-
# > rm *.out
169-
# > nmake -f Make_dos.mak VIMPROG=..\gvim
173+
# > rm testdir/*.out testdir/*.res
174+
# > nmake -f Make_mvc.mak testgvim
170175
# - check the output.
171176
# - Rename "gvim.exe" to "gvim_ole.exe".
172177
# - Rename gvim.pdb to "gvim_ole.pdb".
173178
# - Delete install.exe and uninstal.exe.
174179
# Create the archives:
175180
# - Copy all the "*.exe" files to where this Makefile is.
176181
# - Copy all the "*.pdb" files to where this Makefile is.
177-
# - "make dosbin".
182+
# - in this directory:
183+
# > make dosbin
178184
# NSIS self installing exe:
179185
# - To get NSIS see http://nsis.sourceforge.net
180186
# - Make sure gvim_ole.exe, vimw32.exe, installw32.exe,
@@ -186,17 +192,23 @@ MINOR = 4
186192
# Note: VisVim needs to be build with MSVC 5, newer versions don't work.
187193
# gvimext64.dll can be obtained from http://code.google.com/p/vim-win3264/
188194
# It is part of vim72.zip as vim72/gvimext.dll.
189-
# - make sure there is a diff.exe two levels up
190-
# - go to ../nsis and do "makensis gvim.nsi" (takes a few minutes).
195+
# - Make sure there is a diff.exe two levels up (get it from a previous Vim
196+
# version).
197+
# - go to ../nsis and do:
198+
# > makensis gvim.nsi (takes a few minutes).
191199
# - Copy gvim##.exe to the dist directory.
192200
#
193201
# 64 bit builds (these are not in the normal distribution, the 32 bit build
194202
# works just fine on 64 bit systems).
195203
# Like the console and GUI version, but first run vcvars64.bat or
196204
# "..\VC\vcvarsall.bat x86_amd64".
197-
# - "nmake -f Make_mvc.mak"
198-
# - "nmake -f Make_mvc.mak GUI=yes"
199-
# Or run src/bigvim64.bat for an OLE version.
205+
# - Build the console version:
206+
# > nmake -f Make_mvc.mak
207+
# - Build the GUI version:
208+
# > nmake -f Make_mvc.mak GUI=yes
209+
# - Build the OLE version with interfaces:
210+
# > bigvim64.bat
211+
#
200212
#
201213
# OBSOLETE systems: You can build this if you have an appropriate system.
202214
#
@@ -217,7 +229,7 @@ MINOR = 4
217229
# - Rename the executables to "vimd32.exe", "xxdd32.exe", "installd32.exe" and
218230
# "uninstald32.exe".
219231
#
220-
# Win32s GUI version: (requires very old compiler)
232+
# Win32s GUI version: (requires a very old compiler)
221233
# - Set environment for Visual C++ 4.1 (requires a new console window):
222234
# "vcvars32.bat" (use the path for VC 4.1 e:\msdev\bin)
223235
# - "nmake -f Make_mvc.mak GUI=yes INTL=no clean" (use the path for VC 4.1)
@@ -270,7 +282,6 @@ COMMENT_GVIM = comment/$(VERSION)-bin-gvim
270282
COMMENT_OLE = comment/$(VERSION)-bin-ole
271283
COMMENT_W32S = comment/$(VERSION)-bin-w32s
272284
COMMENT_SRC = comment/$(VERSION)-src
273-
COMMENT_OS2 = comment/$(VERSION)-bin-os2
274285
COMMENT_HTML = comment/$(VERSION)-html
275286
COMMENT_FARSI = comment/$(VERSION)-farsi
276287

@@ -298,9 +309,6 @@ dist/$(COMMENT_W32S): dist/comment
298309
dist/$(COMMENT_SRC): dist/comment
299310
echo "Vim - Vi IMproved - v$(VDOT) sources for MS-DOS and MS-Windows" > dist/$(COMMENT_SRC)
300311

301-
dist/$(COMMENT_OS2): dist/comment
302-
echo "Vim - Vi IMproved - v$(VDOT) binaries + runtime files for OS/2" > dist/$(COMMENT_OS2)
303-
304312
dist/$(COMMENT_HTML): dist/comment
305313
echo "Vim - Vi IMproved - v$(VDOT) documentation in HTML" > dist/$(COMMENT_HTML)
306314

@@ -423,7 +431,8 @@ dossrc: dist no_title.vim dist/$(COMMENT_SRC) runtime/doc/uganda.nsis.txt
423431
| (cd dist/vim/$(VIMRTDIR); tar xf -)
424432
mv dist/vim/$(VIMRTDIR)/runtime/* dist/vim/$(VIMRTDIR)
425433
rmdir dist/vim/$(VIMRTDIR)/runtime
426-
find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
434+
# This file needs to be in dos fileformat for NSIS.
435+
$(VIM) -e -X -u no_title.vim -c ":set tx|wq" dist/vim/$(VIMRTDIR)/doc/uganda.nsis.txt
427436
tar cf - \
428437
$(SRC_DOS_BIN) \
429438
| (cd dist/vim/$(VIMRTDIR); tar xf -)
@@ -432,12 +441,13 @@ dossrc: dist no_title.vim dist/$(COMMENT_SRC) runtime/doc/uganda.nsis.txt
432441
runtime/doc/uganda.nsis.txt: runtime/doc/uganda.txt
433442
cd runtime/doc && $(MAKE) uganda.nsis.txt
434443

435-
dosrt: dist dist/$(COMMENT_RT) dosrt_unix2dos
444+
dosrt: dist dist/$(COMMENT_RT) dosrt_files
436445
-rm -rf dist/vim$(VERSION)rt.zip
437446
cd dist && zip -9 -rD -z vim$(VERSION)rt.zip vim <$(COMMENT_RT)
438447

439448
# Split in two parts to avoid an "argument list too long" error.
440-
dosrt_unix2dos: dist prepare no_title.vim
449+
# We no longer convert the files from unix to dos fileformat.
450+
dosrt_files: dist prepare no_title.vim
441451
-rm -rf dist/vim
442452
mkdir dist/vim
443453
mkdir dist/vim/$(VIMRTDIR)
@@ -453,7 +463,6 @@ dosrt_unix2dos: dist prepare no_title.vim
453463
$(RT_AMI_DOS) \
454464
$(LANG_GEN) \
455465
| (cd dist/vim/$(VIMRTDIR); tar xf -)
456-
find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
457466
tar cf - \
458467
$(RT_UNIX_DOS_BIN) \
459468
$(RT_ALL_BIN) \
@@ -476,9 +485,8 @@ dosrt_unix2dos: dist prepare no_title.vim
476485
cp libintl.dll dist/vim/$(VIMRTDIR)/
477486

478487

479-
# Convert runtime files from Unix fileformat to dos fileformat.
480488
# Used before uploading. Don't delete the AAPDIR/sign files!
481-
runtime_unix2dos: dosrt_unix2dos
489+
runtime_unix2dos: dosrt_files
482490
-rm -rf `find runtime/dos -type f -print | sed -e /AAPDIR/d`
483491
cd dist/vim/$(VIMRTDIR); tar cf - * \
484492
| (cd ../../../runtime/dos; tar xf -)
@@ -494,7 +502,6 @@ dosbin_gvim: dist no_title.vim dist/$(COMMENT_GVIM)
494502
tar cf - \
495503
$(BIN_DOS) \
496504
| (cd dist/vim/$(VIMRTDIR); tar xf -)
497-
find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
498505
cp gvim.exe dist/vim/$(VIMRTDIR)/gvim.exe
499506
cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe
500507
cp vimrun.exe dist/vim/$(VIMRTDIR)/vimrun.exe
@@ -513,7 +520,6 @@ dosbin_w32: dist no_title.vim dist/$(COMMENT_W32)
513520
tar cf - \
514521
$(BIN_DOS) \
515522
| (cd dist/vim/$(VIMRTDIR); tar xf -)
516-
find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
517523
cp vimw32.exe dist/vim/$(VIMRTDIR)/vim.exe
518524
cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe
519525
cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
@@ -530,7 +536,6 @@ dosbin_d32: dist no_title.vim dist/$(COMMENT_D32)
530536
tar cf - \
531537
$(BIN_DOS) \
532538
| (cd dist/vim/$(VIMRTDIR); tar xf -)
533-
find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
534539
cp vimd32.exe dist/vim/$(VIMRTDIR)/vim.exe
535540
cp xxdd32.exe dist/vim/$(VIMRTDIR)/xxd.exe
536541
cp installd32.exe dist/vim/$(VIMRTDIR)/install.exe
@@ -547,7 +552,6 @@ dosbin_d16: dist no_title.vim dist/$(COMMENT_D16)
547552
tar cf - \
548553
$(BIN_DOS) \
549554
| (cd dist/vim/$(VIMRTDIR); tar xf -)
550-
find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
551555
cp vimd16.exe dist/vim/$(VIMRTDIR)/vim.exe
552556
cp xxdd16.exe dist/vim/$(VIMRTDIR)/xxd.exe
553557
cp installd16.exe dist/vim/$(VIMRTDIR)/install.exe
@@ -563,7 +567,6 @@ dosbin_ole: dist no_title.vim dist/$(COMMENT_OLE)
563567
tar cf - \
564568
$(BIN_DOS) \
565569
| (cd dist/vim/$(VIMRTDIR); tar xf -)
566-
find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
567570
cp gvim_ole.exe dist/vim/$(VIMRTDIR)/gvim.exe
568571
cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe
569572
cp vimrun.exe dist/vim/$(VIMRTDIR)/vimrun.exe
@@ -585,29 +588,13 @@ dosbin_s: dist no_title.vim dist/$(COMMENT_W32S)
585588
tar cf - \
586589
$(BIN_DOS) \
587590
| (cd dist/vim/$(VIMRTDIR); tar xf -)
588-
find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
589591
cp gvim_w32s.exe dist/vim/$(VIMRTDIR)/gvim.exe
590592
cp xxdd32.exe dist/vim/$(VIMRTDIR)/xxd.exe
591593
cp README_w32s.txt dist/vim/$(VIMRTDIR)
592594
cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
593595
cp uninstalw32.exe dist/vim/$(VIMRTDIR)/uninstal.exe
594596
cd dist && zip -9 -rD -z gvim$(VERSION)_s.zip vim <$(COMMENT_W32S)
595597

596-
os2bin: dist no_title.vim dist/$(COMMENT_OS2)
597-
-rm -rf dist/vim$(VERSION)os2.zip
598-
-rm -rf dist/vim
599-
mkdir dist/vim
600-
mkdir dist/vim/$(VIMRTDIR)
601-
tar cf - \
602-
$(BIN_OS2) \
603-
| (cd dist/vim/$(VIMRTDIR); tar xf -)
604-
find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
605-
cp vimos2.exe dist/vim/$(VIMRTDIR)/vim.exe
606-
cp xxdos2.exe dist/vim/$(VIMRTDIR)/xxd.exe
607-
cp teeos2.exe dist/vim/$(VIMRTDIR)/tee.exe
608-
cp emx.dll emxlibcs.dll dist/vim/$(VIMRTDIR)
609-
cd dist && zip -9 -rD -z vim$(VERSION)os2.zip vim <$(COMMENT_OS2)
610-
611598
html: dist dist/$(COMMENT_HTML)
612599
-rm -rf dist/vim$(VERSION)html.zip
613600
cd runtime/doc && zip -9 -z ../../dist/vim$(VERSION)html.zip *.html <../../dist/$(COMMENT_HTML)

src/version.c

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

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
1023,
744746
/**/
745747
1022,
746748
/**/

0 commit comments

Comments
 (0)