Karsten Hopp bf1c19
To: vim_dev@googlegroups.com
Karsten Hopp bf1c19
Subject: Patch 7.3.1307
Karsten Hopp bf1c19
Fcc: outbox
Karsten Hopp bf1c19
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp bf1c19
Mime-Version: 1.0
Karsten Hopp bf1c19
Content-Type: text/plain; charset=UTF-8
Karsten Hopp bf1c19
Content-Transfer-Encoding: 8bit
Karsten Hopp bf1c19
------------
Karsten Hopp bf1c19
Karsten Hopp bf1c19
Patch 7.3.1307
Karsten Hopp bf1c19
Problem:    MS-Windows build instructions are outdated.
Karsten Hopp bf1c19
Solution:   Adjust for building on Windows 7.  Drop Windows 95/98/ME support.
Karsten Hopp bf1c19
Files:	    Makefile, nsis/gvim.nsi
Karsten Hopp bf1c19
Karsten Hopp bf1c19
Karsten Hopp bf1c19
*** ../vim-7.3.1306/Makefile	2011-02-15 15:27:00.000000000 +0100
Karsten Hopp bf1c19
--- Makefile	2013-07-04 22:11:07.000000000 +0200
Karsten Hopp bf1c19
***************
Karsten Hopp bf1c19
*** 128,163 ****
Karsten Hopp bf1c19
  # PC:
Karsten Hopp bf1c19
  # - Run make on Unix to update the ".mo" files.
Karsten Hopp bf1c19
  # - "make dossrc" and "make dosrt".  Unpack the archives on a PC.
Karsten Hopp bf1c19
- # 16 bit DOS version: (OBSOLETE, 16 bit version doesn't build)
Karsten Hopp bf1c19
- # - Set environment for compiling with Borland C++ 3.1.
Karsten Hopp bf1c19
- # - "bmake -f Make_bc3.mak BOR=E:\borlandc" (compiling xxd might fail, in that
Karsten Hopp bf1c19
- #   case set environment for compiling with Borland C++ 4.0 and do
Karsten Hopp bf1c19
- #   "make -f make_bc3.mak BOR=E:\BC4 xxd/xxd.exe").
Karsten Hopp bf1c19
- #   NOTE: this currently fails because Vim is too big.
Karsten Hopp bf1c19
- # - "make test" and check the output.
Karsten Hopp bf1c19
- # - Rename the executables to "vimd16.exe", "xxdd16.exe", "installd16.exe" and
Karsten Hopp bf1c19
- #   "uninstald16.exe".
Karsten Hopp bf1c19
- # 32 bit DOS version:
Karsten Hopp bf1c19
- # - Set environment for compiling with DJGPP; "gmake -f Make_djg.mak".
Karsten Hopp bf1c19
- # - "rm testdir/*.out", "gmake -f Make_djg.mak test" and check the output for
Karsten Hopp bf1c19
- #   "ALL DONE".
Karsten Hopp bf1c19
- # - Rename the executables to "vimd32.exe", "xxdd32.exe", "installd32.exe" and
Karsten Hopp bf1c19
- #   "uninstald32.exe".
Karsten Hopp bf1c19
  # Win32 console version:
Karsten Hopp bf1c19
! # - Set environment for Visual C++ 2008, e.g.:
Karsten Hopp bf1c19
! #   "E:\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat".  Or, when using the
Karsten Hopp bf1c19
! #   Visual C++ Toolkit 2003: "msvcsetup.bat" (adjust the paths when necessary).
Karsten Hopp bf1c19
! #   For Windows 98/ME the 2003 version is required, but then it won't work on
Karsten Hopp bf1c19
! #   Windows 7 and 64 bit.
Karsten Hopp bf1c19
! # - "nmake -f Make_mvc.mak"
Karsten Hopp bf1c19
  # - "rm testdir/*.out", "nmake -f Make_mvc.mak test" and check the output.
Karsten Hopp bf1c19
! # - Rename the executables to "vimw32.exe", "xxdw32.exe".
Karsten Hopp bf1c19
  # - Rename vim.pdb to vimw32.pdb.
Karsten Hopp bf1c19
! # - When building the Win32s version later, delete vimrun.exe, install.exe and
Karsten Hopp bf1c19
! #   uninstal.exe.  Otherwise rename executables to installw32.exe and
Karsten Hopp bf1c19
! #   uninstalw32.exe.
Karsten Hopp bf1c19
  # Win32 GUI version:
Karsten Hopp bf1c19
! # - "nmake -f Make_mvc.mak GUI=yes.
Karsten Hopp bf1c19
  # - move "gvim.exe" to here (otherwise the OLE version will overwrite it).
Karsten Hopp bf1c19
  # - Move gvim.pdb to here.
Karsten Hopp bf1c19
  # - Delete vimrun.exe, install.exe and uninstal.exe.
Karsten Hopp bf1c19
--- 128,147 ----
Karsten Hopp bf1c19
  # PC:
Karsten Hopp bf1c19
  # - Run make on Unix to update the ".mo" files.
Karsten Hopp bf1c19
  # - "make dossrc" and "make dosrt".  Unpack the archives on a PC.
Karsten Hopp bf1c19
  # Win32 console version:
Karsten Hopp bf1c19
! # - Set environment for Visual C++ 2008, e.g.: "msvc2008.bat"  Or:
Karsten Hopp bf1c19
! #   "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat".
Karsten Hopp bf1c19
! #   Or, when using the Visual C++ Toolkit 2003: "msvcsetup.bat" (adjust the
Karsten Hopp bf1c19
! #   paths when necessary).
Karsten Hopp bf1c19
! #   For Windows 98/ME the 2003 version is required, but then the executable
Karsten Hopp bf1c19
! #   won't work on Windows 7 and 64 bit.
Karsten Hopp bf1c19
! # - "nmake -f Make_mvc.mak"  (use the same path as for vcvars32.bat)
Karsten Hopp bf1c19
  # - "rm testdir/*.out", "nmake -f Make_mvc.mak test" and check the output.
Karsten Hopp bf1c19
! # - Rename vim.exe to vimw32.exe, xxd/xxd.exe to xxdw32.exe.
Karsten Hopp bf1c19
  # - Rename vim.pdb to vimw32.pdb.
Karsten Hopp bf1c19
! # - Rename install.exe to installw32.exe and uninstal.exe to uninstalw32.exe.
Karsten Hopp bf1c19
  # Win32 GUI version:
Karsten Hopp bf1c19
! # - "nmake -f Make_mvc.mak GUI=yes"
Karsten Hopp bf1c19
  # - move "gvim.exe" to here (otherwise the OLE version will overwrite it).
Karsten Hopp bf1c19
  # - Move gvim.pdb to here.
Karsten Hopp bf1c19
  # - Delete vimrun.exe, install.exe and uninstal.exe.
Karsten Hopp bf1c19
***************
Karsten Hopp bf1c19
*** 167,189 ****
Karsten Hopp bf1c19
  # - Rename "gvim.exe" to "gvim_ole.exe".
Karsten Hopp bf1c19
  # - Rename gvim.pdb to "gvim_ole.pdb".
Karsten Hopp bf1c19
  # - Delete install.exe and uninstal.exe.
Karsten Hopp bf1c19
- # - If building the Win32s version delete vimrun.exe.
Karsten Hopp bf1c19
- # Win32s GUI version:
Karsten Hopp bf1c19
- # - Set environment for Visual C++ 4.1 (requires a new console window):
Karsten Hopp bf1c19
- #   "vcvars32.bat" (use the path for VC 4.1 e:\msdev\bin)
Karsten Hopp bf1c19
- # - "nmake -f Make_mvc.mak GUI=yes INTL=no clean" (use the path for VC 4.1)
Karsten Hopp bf1c19
- # - "nmake -f Make_mvc.mak GUI=yes INTL=no" (use the path for VC 4.1)
Karsten Hopp bf1c19
- # - Rename "gvim.exe" to "gvim_w32s.exe".
Karsten Hopp bf1c19
- # - Rename "install.exe" to "installw32.exe"
Karsten Hopp bf1c19
- # - Rename "uninstal.exe" to "uninstalw32.exe"
Karsten Hopp bf1c19
- # - The produced uninstalw32.exe and vimrun.exe are used.
Karsten Hopp bf1c19
  # Create the archives:
Karsten Hopp bf1c19
  # - Copy all the "*.exe" files to where this Makefile is.
Karsten Hopp bf1c19
  # - Copy all the "*.pdb" files to where this Makefile is.
Karsten Hopp bf1c19
  # - "make dosbin".
Karsten Hopp bf1c19
  # NSIS self installing exe:
Karsten Hopp bf1c19
  # - To get NSIS see http://nsis.sourceforge.net
Karsten Hopp bf1c19
! # - Make sure gvim_ole.exe, vimd32.exe, vimw32.exe, installw32.exe,
Karsten Hopp bf1c19
  #   uninstalw32.exe and xxdw32.exe have been build as mentioned above.
Karsten Hopp bf1c19
  # - copy these files (get them from a binary archive or build them):
Karsten Hopp bf1c19
  #	gvimext.dll in src/GvimExt
Karsten Hopp bf1c19
--- 151,163 ----
Karsten Hopp bf1c19
  # - Rename "gvim.exe" to "gvim_ole.exe".
Karsten Hopp bf1c19
  # - Rename gvim.pdb to "gvim_ole.pdb".
Karsten Hopp bf1c19
  # - Delete install.exe and uninstal.exe.
Karsten Hopp bf1c19
  # Create the archives:
Karsten Hopp bf1c19
  # - Copy all the "*.exe" files to where this Makefile is.
Karsten Hopp bf1c19
  # - Copy all the "*.pdb" files to where this Makefile is.
Karsten Hopp bf1c19
  # - "make dosbin".
Karsten Hopp bf1c19
  # NSIS self installing exe:
Karsten Hopp bf1c19
  # - To get NSIS see http://nsis.sourceforge.net
Karsten Hopp bf1c19
! # - Make sure gvim_ole.exe, vimw32.exe, installw32.exe,
Karsten Hopp bf1c19
  #   uninstalw32.exe and xxdw32.exe have been build as mentioned above.
Karsten Hopp bf1c19
  # - copy these files (get them from a binary archive or build them):
Karsten Hopp bf1c19
  #	gvimext.dll in src/GvimExt
Karsten Hopp bf1c19
***************
Karsten Hopp bf1c19
*** 196,202 ****
Karsten Hopp bf1c19
  # - go to ../nsis and do "makensis gvim.nsi" (takes a few minutes).
Karsten Hopp bf1c19
  # - Copy gvim##.exe to the dist directory.
Karsten Hopp bf1c19
  #
Karsten Hopp bf1c19
! # OS/2: (OBSOLETE, OS/2 version is no longer distributed)
Karsten Hopp bf1c19
  # - Unpack the Unix archive.
Karsten Hopp bf1c19
  # - "make -f Make_os2.mak".
Karsten Hopp bf1c19
  # - Rename the executables to vimos2.exe, xxdos2.exe and teeos2.exe and copy
Karsten Hopp bf1c19
--- 170,213 ----
Karsten Hopp bf1c19
  # - go to ../nsis and do "makensis gvim.nsi" (takes a few minutes).
Karsten Hopp bf1c19
  # - Copy gvim##.exe to the dist directory.
Karsten Hopp bf1c19
  #
Karsten Hopp bf1c19
! # 64 bit builds (these are not in the normal distribution, the 32 bit build
Karsten Hopp bf1c19
! # works just fine on 64 bit systems).
Karsten Hopp bf1c19
! # Like the console and GUI version, but first run vcvars64.bat or
Karsten Hopp bf1c19
! #   "..\VC\vcvarsall.bat x86_amd64".
Karsten Hopp bf1c19
! # - "nmake -f Make_mvc.mak"
Karsten Hopp bf1c19
! # - "nmake -f Make_mvc.mak GUI=yes"
Karsten Hopp bf1c19
! # Or run src/bigvim64.bat for an OLE version.
Karsten Hopp bf1c19
! #
Karsten Hopp bf1c19
! # OBSOLETE systems: You can build this if you have an appropriate system.
Karsten Hopp bf1c19
! #
Karsten Hopp bf1c19
! # 16 bit DOS version: (doesn't build anywhere)
Karsten Hopp bf1c19
! # - Set environment for compiling with Borland C++ 3.1.
Karsten Hopp bf1c19
! # - "bmake -f Make_bc3.mak BOR=E:\borlandc" (compiling xxd might fail, in that
Karsten Hopp bf1c19
! #   case set environment for compiling with Borland C++ 4.0 and do
Karsten Hopp bf1c19
! #   "make -f make_bc3.mak BOR=E:\BC4 xxd/xxd.exe").
Karsten Hopp bf1c19
! #   NOTE: this currently fails because Vim is too big.
Karsten Hopp bf1c19
! # - "make test" and check the output.
Karsten Hopp bf1c19
! # - Rename the executables to "vimd16.exe", "xxdd16.exe", "installd16.exe" and
Karsten Hopp bf1c19
! #   "uninstald16.exe".
Karsten Hopp bf1c19
! #
Karsten Hopp bf1c19
! # 32 bit DOS version: (requires Windows XP or earlier)
Karsten Hopp bf1c19
! # - Set environment for compiling with DJGPP; "gmake -f Make_djg.mak".
Karsten Hopp bf1c19
! # - "rm testdir/*.out", "gmake -f Make_djg.mak test" and check the output for
Karsten Hopp bf1c19
! #   "ALL DONE".
Karsten Hopp bf1c19
! # - Rename the executables to "vimd32.exe", "xxdd32.exe", "installd32.exe" and
Karsten Hopp bf1c19
! #   "uninstald32.exe".
Karsten Hopp bf1c19
! #
Karsten Hopp bf1c19
! # Win32s GUI version: (requires very old compiler)
Karsten Hopp bf1c19
! # - Set environment for Visual C++ 4.1 (requires a new console window):
Karsten Hopp bf1c19
! #   "vcvars32.bat" (use the path for VC 4.1 e:\msdev\bin)
Karsten Hopp bf1c19
! # - "nmake -f Make_mvc.mak GUI=yes INTL=no clean" (use the path for VC 4.1)
Karsten Hopp bf1c19
! # - "nmake -f Make_mvc.mak GUI=yes INTL=no" (use the path for VC 4.1)
Karsten Hopp bf1c19
! # - Rename "gvim.exe" to "gvim_w32s.exe".
Karsten Hopp bf1c19
! # - Rename "install.exe" to "installw32.exe"
Karsten Hopp bf1c19
! # - Rename "uninstal.exe" to "uninstalw32.exe"
Karsten Hopp bf1c19
! # - The produced uninstalw32.exe and vimrun.exe are used.
Karsten Hopp bf1c19
! #
Karsten Hopp bf1c19
! # OS/2: (requires an OS/2 system)
Karsten Hopp bf1c19
  # - Unpack the Unix archive.
Karsten Hopp bf1c19
  # - "make -f Make_os2.mak".
Karsten Hopp bf1c19
  # - Rename the executables to vimos2.exe, xxdos2.exe and teeos2.exe and copy
Karsten Hopp bf1c19
***************
Karsten Hopp bf1c19
*** 295,300 ****
Karsten Hopp bf1c19
--- 306,313 ----
Karsten Hopp bf1c19
  		$(LANG_SRC) \
Karsten Hopp bf1c19
  		| (cd dist/$(VIMRTDIR); tar xf -)
Karsten Hopp bf1c19
  # Need to use a "distclean" config.mk file
Karsten Hopp bf1c19
+ # Note: this file is not included in the repository to avoid problems, but it's
Karsten Hopp bf1c19
+ # OK to put it in the archive.
Karsten Hopp bf1c19
  	cp -f src/config.mk.dist dist/$(VIMRTDIR)/src/auto/config.mk
Karsten Hopp bf1c19
  # Create an empty config.h file, make dependencies require it
Karsten Hopp bf1c19
  	touch dist/$(VIMRTDIR)/src/auto/config.h
Karsten Hopp bf1c19
*** ../vim-7.3.1306/nsis/gvim.nsi	2010-08-15 21:56:43.000000000 +0200
Karsten Hopp bf1c19
--- nsis/gvim.nsi	2013-07-04 22:12:22.000000000 +0200
Karsten Hopp bf1c19
***************
Karsten Hopp bf1c19
*** 5,11 ****
Karsten Hopp bf1c19
  # WARNING: if you make changes to this script, look out for $0 to be valid,
Karsten Hopp bf1c19
  # because uninstall deletes most files in $0.
Karsten Hopp bf1c19
  
Karsten Hopp bf1c19
! # Location of gvim_ole.exe, vimd32.exe, GvimExt/*, etc.
Karsten Hopp bf1c19
  !define VIMSRC "..\src"
Karsten Hopp bf1c19
  
Karsten Hopp bf1c19
  # Location of runtime files
Karsten Hopp bf1c19
--- 5,11 ----
Karsten Hopp bf1c19
  # WARNING: if you make changes to this script, look out for $0 to be valid,
Karsten Hopp bf1c19
  # because uninstall deletes most files in $0.
Karsten Hopp bf1c19
  
Karsten Hopp bf1c19
! # Location of gvim_ole.exe, vimw32.exe, GvimExt/*, etc.
Karsten Hopp bf1c19
  !define VIMSRC "..\src"
Karsten Hopp bf1c19
  
Karsten Hopp bf1c19
  # Location of runtime files
Karsten Hopp bf1c19
***************
Karsten Hopp bf1c19
*** 247,257 ****
Karsten Hopp bf1c19
  	ReadRegStr $R0 HKLM \
Karsten Hopp bf1c19
  	   "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
Karsten Hopp bf1c19
  	IfErrors 0 lbl_winnt
Karsten Hopp bf1c19
! 	    # Windows 95/98/ME
Karsten Hopp bf1c19
! 	    File /oname=vim.exe ${VIMSRC}\vimd32.exe
Karsten Hopp bf1c19
  	    Goto lbl_done
Karsten Hopp bf1c19
  	lbl_winnt:
Karsten Hopp bf1c19
! 	    # Windows NT/2000/XT
Karsten Hopp bf1c19
  	    File /oname=vim.exe ${VIMSRC}\vimw32.exe
Karsten Hopp bf1c19
  	lbl_done:
Karsten Hopp bf1c19
  	StrCpy $2 "$2 vim view vimdiff"
Karsten Hopp bf1c19
--- 247,256 ----
Karsten Hopp bf1c19
  	ReadRegStr $R0 HKLM \
Karsten Hopp bf1c19
  	   "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
Karsten Hopp bf1c19
  	IfErrors 0 lbl_winnt
Karsten Hopp bf1c19
! 	    # Windows 95/98/ME: not supported
Karsten Hopp bf1c19
  	    Goto lbl_done
Karsten Hopp bf1c19
  	lbl_winnt:
Karsten Hopp bf1c19
! 	    # Windows NT/2000/XT and later
Karsten Hopp bf1c19
  	    File /oname=vim.exe ${VIMSRC}\vimw32.exe
Karsten Hopp bf1c19
  	lbl_done:
Karsten Hopp bf1c19
  	StrCpy $2 "$2 vim view vimdiff"
Karsten Hopp bf1c19
*** ../vim-7.3.1306/src/version.c	2013-07-04 22:30:59.000000000 +0200
Karsten Hopp bf1c19
--- src/version.c	2013-07-04 22:33:12.000000000 +0200
Karsten Hopp bf1c19
***************
Karsten Hopp bf1c19
*** 730,731 ****
Karsten Hopp bf1c19
--- 730,733 ----
Karsten Hopp bf1c19
  {   /* Add new patch number below this line */
Karsten Hopp bf1c19
+ /**/
Karsten Hopp bf1c19
+     1307,
Karsten Hopp bf1c19
  /**/
Karsten Hopp bf1c19
Karsten Hopp bf1c19
-- 
Karsten Hopp bf1c19
An indication you must be a manager:
Karsten Hopp bf1c19
You feel sorry for Dilbert's boss.
Karsten Hopp bf1c19
Karsten Hopp bf1c19
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp bf1c19
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp bf1c19
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp bf1c19
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///