mirror of
https://github.com/vim/vim.git
synced 2025-07-04 23:07:33 -04:00
patch 7.4.1106
Problem: The nsis script can't be used from the appveyor build. Solution: Add "ifndef" to allow for variables to be set from the command line. Remove duplicate SetCompressor command. Support using other gettext binaries. (Ken Takata) Update build instructions to use libintl-8.dll.
This commit is contained in:
parent
9bbf63dbf8
commit
286eacd3f6
6
Makefile
6
Makefile
@ -131,6 +131,9 @@ MINOR = 4
|
|||||||
#
|
#
|
||||||
# MS-Windows:
|
# MS-Windows:
|
||||||
# - Run make on Unix to update the ".mo" files.
|
# - Run make on Unix to update the ".mo" files.
|
||||||
|
# - Get libintl-8.dll and libiconv-2.dll. E.g. from
|
||||||
|
# https://mlocati.github.io/gettext-iconv-windows/ .
|
||||||
|
# Put them in the top directory, "make dosrt" uses them.
|
||||||
# - > make dossrc
|
# - > make dossrc
|
||||||
# > make dosrt
|
# > make dosrt
|
||||||
# Unpack dist/vim##rt.zip and dist/vim##src.zip on an MS-Windows PC.
|
# Unpack dist/vim##rt.zip and dist/vim##src.zip on an MS-Windows PC.
|
||||||
@ -493,7 +496,8 @@ dosrt_files: dist prepare no_title.vim
|
|||||||
cp $$i dist/vim/$(VIMRTDIR)/lang/$$n/LC_MESSAGES/vim.mo; \
|
cp $$i dist/vim/$(VIMRTDIR)/lang/$$n/LC_MESSAGES/vim.mo; \
|
||||||
fi \
|
fi \
|
||||||
done
|
done
|
||||||
cp libintl.dll dist/vim/$(VIMRTDIR)/
|
cp libintl-8.dll dist/vim/$(VIMRTDIR)/
|
||||||
|
cp libiconv-2.dll dist/vim/$(VIMRTDIR)/
|
||||||
|
|
||||||
|
|
||||||
# Used before uploading. Don't delete the AAPDIR/sign files!
|
# Used before uploading. Don't delete the AAPDIR/sign files!
|
||||||
|
@ -6,13 +6,19 @@
|
|||||||
# because uninstall deletes most files in $0.
|
# because uninstall deletes most files in $0.
|
||||||
|
|
||||||
# Location of gvim_ole.exe, vimw32.exe, GvimExt/*, etc.
|
# Location of gvim_ole.exe, vimw32.exe, GvimExt/*, etc.
|
||||||
!define VIMSRC "..\src"
|
!ifndef VIMSRC
|
||||||
|
!define VIMSRC "..\src"
|
||||||
|
!endif
|
||||||
|
|
||||||
# Location of runtime files
|
# Location of runtime files
|
||||||
!define VIMRT ".."
|
!ifndef VIMRT
|
||||||
|
!define VIMRT ".."
|
||||||
|
!endif
|
||||||
|
|
||||||
# Location of extra tools: diff.exe
|
# Location of extra tools: diff.exe
|
||||||
!define VIMTOOLS ..\..
|
!ifndef VIMTOOLS
|
||||||
|
!define VIMTOOLS ..\..
|
||||||
|
!endif
|
||||||
|
|
||||||
# Comment the next line if you don't have UPX.
|
# Comment the next line if you don't have UPX.
|
||||||
# Get it at http://upx.sourceforge.net
|
# Get it at http://upx.sourceforge.net
|
||||||
@ -32,9 +38,10 @@
|
|||||||
Name "Vim ${VER_MAJOR}.${VER_MINOR}"
|
Name "Vim ${VER_MAJOR}.${VER_MINOR}"
|
||||||
OutFile gvim${VER_MAJOR}${VER_MINOR}.exe
|
OutFile gvim${VER_MAJOR}${VER_MINOR}.exe
|
||||||
CRCCheck force
|
CRCCheck force
|
||||||
SetCompressor lzma
|
SetCompressor /SOLID lzma
|
||||||
SetDatablockOptimize on
|
SetDatablockOptimize on
|
||||||
RequestExecutionLevel highest
|
RequestExecutionLevel highest
|
||||||
|
XPStyle on
|
||||||
|
|
||||||
ComponentText "This will install Vim ${VER_MAJOR}.${VER_MINOR} on your computer."
|
ComponentText "This will install Vim ${VER_MAJOR}.${VER_MINOR} on your computer."
|
||||||
DirText "Choose a directory to install Vim (should contain 'vim')"
|
DirText "Choose a directory to install Vim (should contain 'vim')"
|
||||||
@ -55,9 +62,6 @@ LicenseData ${VIMRT}\doc\uganda.nsis.txt
|
|||||||
!packhdr temp.dat "upx --best --compress-icons=1 temp.dat"
|
!packhdr temp.dat "upx --best --compress-icons=1 temp.dat"
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
SetCompressor /SOLID lzma
|
|
||||||
XPStyle on
|
|
||||||
|
|
||||||
# This adds '\vim' to the user choice automagically. The actual value is
|
# This adds '\vim' to the user choice automagically. The actual value is
|
||||||
# obtained below with ReadINIStr.
|
# obtained below with ReadINIStr.
|
||||||
InstallDir "$PROGRAMFILES\Vim"
|
InstallDir "$PROGRAMFILES\Vim"
|
||||||
@ -355,7 +359,9 @@ SectionEnd
|
|||||||
File ${VIMRT}\keymap\README.txt
|
File ${VIMRT}\keymap\README.txt
|
||||||
File ${VIMRT}\keymap\*.vim
|
File ${VIMRT}\keymap\*.vim
|
||||||
SetOutPath $0
|
SetOutPath $0
|
||||||
File ${VIMRT}\libintl.dll
|
File ${VIMRT}\libintl-8.dll
|
||||||
|
File ${VIMRT}\libiconv-2.dll
|
||||||
|
File /nonfatal ${VIMRT}\libwinpthread-1.dll
|
||||||
SectionEnd
|
SectionEnd
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
|
@ -1580,7 +1580,7 @@ init_locale()
|
|||||||
|
|
||||||
# ifdef DYNAMIC_GETTEXT
|
# ifdef DYNAMIC_GETTEXT
|
||||||
/* Initialize the gettext library */
|
/* Initialize the gettext library */
|
||||||
dyn_libintl_init(NULL);
|
dyn_libintl_init();
|
||||||
# endif
|
# endif
|
||||||
/* expand_env() doesn't work yet, because chartab[] is not initialized
|
/* expand_env() doesn't work yet, because chartab[] is not initialized
|
||||||
* yet, call vim_getenv() directly */
|
* yet, call vim_getenv() directly */
|
||||||
|
@ -69,7 +69,7 @@ WinMain(
|
|||||||
|
|
||||||
#ifdef DYNAMIC_GETTEXT
|
#ifdef DYNAMIC_GETTEXT
|
||||||
/* Initialize gettext library */
|
/* Initialize gettext library */
|
||||||
dyn_libintl_init(NULL);
|
dyn_libintl_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef VIMDLL
|
#ifdef VIMDLL
|
||||||
|
@ -463,6 +463,7 @@ vimLoadLib(char *name)
|
|||||||
#if defined(DYNAMIC_GETTEXT) || defined(PROTO)
|
#if defined(DYNAMIC_GETTEXT) || defined(PROTO)
|
||||||
# ifndef GETTEXT_DLL
|
# ifndef GETTEXT_DLL
|
||||||
# define GETTEXT_DLL "libintl.dll"
|
# define GETTEXT_DLL "libintl.dll"
|
||||||
|
# define GETTEXT_DLL_ALT "libintl-8.dll"
|
||||||
# endif
|
# endif
|
||||||
/* Dummy functions */
|
/* Dummy functions */
|
||||||
static char *null_libintl_gettext(const char *);
|
static char *null_libintl_gettext(const char *);
|
||||||
@ -479,7 +480,7 @@ char *(*dyn_libintl_bind_textdomain_codeset)(const char *, const char *)
|
|||||||
= null_libintl_bind_textdomain_codeset;
|
= null_libintl_bind_textdomain_codeset;
|
||||||
|
|
||||||
int
|
int
|
||||||
dyn_libintl_init(char *libname)
|
dyn_libintl_init()
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
static struct
|
static struct
|
||||||
@ -498,7 +499,9 @@ dyn_libintl_init(char *libname)
|
|||||||
if (hLibintlDLL)
|
if (hLibintlDLL)
|
||||||
return 1;
|
return 1;
|
||||||
/* Load gettext library (libintl.dll) */
|
/* Load gettext library (libintl.dll) */
|
||||||
hLibintlDLL = vimLoadLib(libname != NULL ? libname : GETTEXT_DLL);
|
hLibintlDLL = vimLoadLib(GETTEXT_DLL);
|
||||||
|
if (!hLibintlDLL)
|
||||||
|
hLibintlDLL = vimLoadLib(GETTEXT_DLL_ALT);
|
||||||
if (!hLibintlDLL)
|
if (!hLibintlDLL)
|
||||||
{
|
{
|
||||||
if (p_verbose > 0)
|
if (p_verbose > 0)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* os_win32.c */
|
/* os_win32.c */
|
||||||
HINSTANCE vimLoadLib __ARGS((char *name));
|
HINSTANCE vimLoadLib __ARGS((char *name));
|
||||||
int dyn_libintl_init __ARGS((char *libname));
|
int dyn_libintl_init __ARGS((void));
|
||||||
void dyn_libintl_end __ARGS((void));
|
void dyn_libintl_end __ARGS((void));
|
||||||
void PlatformId __ARGS((void));
|
void PlatformId __ARGS((void));
|
||||||
int mch_windows95 __ARGS((void));
|
int mch_windows95 __ARGS((void));
|
||||||
|
@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1106,
|
||||||
/**/
|
/**/
|
||||||
1105,
|
1105,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user