1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-12 09:35:40 +08:00
Bright Chen d0b07bbc78
Update vimproc.vim bundle to latest version 8f40d86 ()
vimproc.vim fixed one issue about .gitignore file, so update it to avoid
an error for vimproc library missing.

The root reason is that when running `make`, the folder lib does not
exist, so it will be failed.

Following output is when I run `make` mannually.

```
$ make
make -f make_unix.mak
make[1]: Entering directory '/home/bright/.SpaceVim/bundle/vimproc.vim'
cc -W -O2 -Wall -Wno-unused -Wno-unused-parameter -std=gnu99 -pedantic -shared -fPIC  -o lib/vimproc_linux64.so src/proc.c -lutil
/usr/bin/ld: cannot open output file lib/vimproc_linux64.so: No such file or directory
collect2: error: ld returned 1 exit status
make[1]: *** [make_unix.mak:17: lib/vimproc_linux64.so] Error 1
make[1]: Leaving directory '/home/bright/.SpaceVim/bundle/vimproc.vim'
make: *** [Makefile:66: all] Error 2
```

Co-authored-by: Bright Chen <bright.chen@autodesk.com>
2020-06-26 20:46:07 +08:00

52 lines
1.3 KiB
Batchfile
Executable File

@echo off
rem Update the DLL using MinGW.
rem If the old DLL is in use, rename it to avoid compilation error.
rem
rem usage: update-dll-mingw [arch] [makeopts]
rem
rem [arch] is 32 or 64. If omitted, it is automatically detected from the
rem %PROCESSOR_ARCHITECTURE% environment.
rem [makeopts] is option(s) for mingw32-make.
rem
rem
rem Sample .vimrc:
rem
rem NeoBundle 'Shougo/vimproc.vim', {
rem \ 'build' : {
rem \ 'windows' : 'tools\\update-dll-mingw',
rem \ 'cygwin' : 'make -f make_cygwin.mak',
rem \ 'mac' : 'make -f make_mac.mak',
rem \ 'linux' : 'make',
rem \ 'unix' : 'gmake',
rem \ },
rem \ }
if "%1"=="32" (
set vimproc_arch=%1
shift
) else if "%1"=="64" (
set vimproc_arch=%1
shift
) else (
if "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
set vimproc_arch=64
) else (
set vimproc_arch=32
)
)
set vimproc_dllname=vimproc_win%vimproc_arch%.dll
where mingw32-make >nul 2>&1
if ERRORLEVEL 1 (
echo mingw32-make not found.
goto :EOF
)
rem Try to delete old DLLs.
if exist lib\%vimproc_dllname%.old del lib\%vimproc_dllname%.old
if exist lib\%vimproc_dllname% del lib\%vimproc_dllname%
rem If the DLL couldn't delete (may be it is in use), rename it.
if exist lib\%vimproc_dllname% ren lib\%vimproc_dllname% %vimproc_dllname%.old
mingw32-make -f make_mingw%vimproc_arch%.mak %1 %2 %3 %4 %5 %6 %7 %8 %9