Skip to content

Commit 18b5182

Browse files
committed
Merge pull request #224 from Shougo/src
Fix #220 split to bin and src files
2 parents 36992e4 + ebaeff3 commit 18b5182

22 files changed

+52
-56
lines changed

.gitignore

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
autoload/vimproc_*.so
2-
autoload/vimproc_*.dll
3-
autoload/vimproc_*.dll.old
4-
autoload/vimproc_*.dll.manifest
5-
autoload/vimproc_*.exp
6-
autoload/vimproc_*.lib
7-
autoload/*.pdb
1+
lib/*
82
doc/tags
93
*.obj
104
*.o

README.mkd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ Not supported platforms:
2525

2626
* Clone this repo
2727
* Build vimproc's native extensions (see Building for details)
28-
* Copy `autoload/*` and `plugin/*` files to your 'runtimepath' directory (see
29-
`:help runtimepath`).
28+
* Copy `autoload/*`, `lib/*` and `plugin/*` files to your 'runtimepath'
29+
directory (see `:help runtimepath`).
3030

3131
### NeoBundle
3232

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ build_script:
2424
test_script:
2525
- '%APPVEYOR_BUILD_FOLDER%\tools\appveyor.bat test'
2626
artifacts:
27-
- path: autoload/vimproc_*.dll
27+
- path: lib/vimproc_*.dll
2828
name: vimproc.dll
2929
deploy:
3030
provider: GitHub

autoload/vimproc.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ endif
7171

7272
call vimproc#util#set_default(
7373
\ 'g:vimproc#dll_path',
74-
\ expand('<sfile>:p:h') . '/' . s:vimproc_dll_basename,
74+
\ expand('<sfile>:p:h:h') . '/lib/' . s:vimproc_dll_basename,
7575
\ 'g:vimproc_dll_path')
7676
unlet s:vimproc_dll_basename
7777

@@ -141,7 +141,7 @@ if !filereadable(g:vimproc#dll_path) || !has('libcall') "{{{
141141
endif"}}}
142142

143143
function! vimproc#version() "{{{
144-
return str2nr(printf('%2d%02d', 9, 1))
144+
return str2nr(printf('%2d%02d', 9, 2))
145145
endfunction"}}}
146146
function! vimproc#dll_version() "{{{
147147
let [dll_version] = s:libcall('vp_dlversion', [])

doc/vimproc.txt

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
*vimproc.txt* Asynchronous execution plugin for Vim
22

3-
Version: 9.1
3+
Version: 9.2
44
Author : Shougo <Shougo.Matsu at gmail.com>
55
Original Author : Yukihiro Nakadaira <yukihiro.nakadaira at gmail.com>
66
License: MIT license {{{
@@ -48,7 +48,7 @@ I'm maintaining it now. Instead of external shell (example: 'shell'),
4848
==============================================================================
4949
INSTALL *vimproc-install*
5050

51-
In first, you get vimproc from git repository.
51+
In first, you must get vimproc from git repository.
5252

5353
http://github.com/Shougo/vimproc.vim
5454

@@ -92,7 +92,8 @@ Mac OS X
9292
>
9393
$ make
9494
<
95-
Note: If you want to build for multiple architectures, you can use $ARCHS and $CC variables.
95+
Note: If you want to build for multiple architectures, you can use $ARCHS and
96+
$CC variables.
9697

9798
Build for i386 and x86-64:
9899
>
@@ -379,13 +380,13 @@ VARIABLES *vimproc-variables*
379380

380381
*g:vimproc#dll_path*
381382
g:vimproc#dll_path (default
382-
Win32: "$VIMRUNTIME/autoload/vimproc_win32.dll"
383-
Win64: "$VIMRUNTIME/autoload/vimproc_win64.dll"
384-
Cygwin: "$VIMRUNTIME/autoload/vimproc_cygwin.dll"
385-
Mac: "$VIMRUNTIME/autoload/vimproc_mac.so"
386-
Linux32: "$VIMRUNTIME/autoload/vimproc_linux32.so"
387-
Linux64: "$VIMRUNTIME/autoload/vimproc_linux64.so"
388-
Others: "$VIMRUNTIME/autoload/vimproc_unix.so")
383+
Win32: "$VIMRUNTIME/lib/vimproc_win32.dll"
384+
Win64: "$VIMRUNTIME/lib/vimproc_win64.dll"
385+
Cygwin: "$VIMRUNTIME/lib/vimproc_cygwin.dll"
386+
Mac: "$VIMRUNTIME/lib/vimproc_mac.so"
387+
Linux32: "$VIMRUNTIME/lib/vimproc_linux32.so"
388+
Linux64: "$VIMRUNTIME/lib/vimproc_linux64.so"
389+
Others: "$VIMRUNTIME/lib/vimproc_unix.so")
389390
This variable stores a dll name used by vimproc. You must
390391
compile this dll file. If this dll does not exist, vimproc
391392
will echo error.

lib/.gitkeep

Whitespace-only changes.

make_android.mak

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
CFLAGS+=-W -Wall -Wno-unused -Wno-unused-parameter -std=c99 -O2 -fPIC -pedantic
99
LDFLAGS+=-shared
1010

11-
TARGET=autoload/vimproc_unix.so
12-
SRC=autoload/proc.c autoload/ptytty.c
13-
INC=autoload/vimstack.c autoload/ptytty.h
11+
TARGET=lib/vimproc_unix.so
12+
SRC=src/proc.c src/ptytty.c
13+
INC=src/vimstack.c src/ptytty.h
1414

1515
all: $(TARGET)
1616

make_bsd.mak

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
SUFFIX!=uname -sm | tr '[:upper:]' '[:lower:]' | sed -e 's/ /_/'
44

5-
TARGET=autoload/vimproc_$(SUFFIX).so
5+
TARGET=lib/vimproc_$(SUFFIX).so
66

7-
SRC=autoload/proc.c
7+
SRC=src/proc.c
88
CFLAGS+=-W -O2 -Wall -Wno-unused -Wno-unused-parameter -std=gnu99 -pedantic -shared -fPIC
99
LDFLAGS+=-lutil
1010

1111
all: $(TARGET)
1212

13-
$(TARGET): $(SRC) autoload/vimstack.c
13+
$(TARGET): $(SRC) src/vimstack.c
1414
$(CC) $(CFLAGS) -o $(TARGET) $(SRC) $(LDFLAGS)
1515

1616
clean:

make_cygwin.mak

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
CFLAGS+=-O2 -W -Wall -Wno-unused -Wno-unused-parameter -use=gnu99 -shared
2-
TARGET=autoload/vimproc_cygwin.dll
3-
SRC=autoload/proc.c
2+
TARGET=lib/vimproc_cygwin.dll
3+
SRC=src/proc.c
44
LDFLAGS+=-lutil
55

66
all: $(TARGET)
77

8-
$(TARGET): $(SRC) autoload/vimstack.c
8+
$(TARGET): $(SRC) src/vimstack.c
99
gcc $(CFLAGS) -o $(TARGET) $(SRC) $(LDFLAGS)
1010

1111
clean:

make_mac.mak

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ CC=gcc
1010
endif
1111
endif
1212

13-
TARGET=autoload/vimproc_mac.so
14-
SRC=autoload/proc.c
13+
TARGET=lib/vimproc_mac.so
14+
SRC=src/proc.c
1515
ARCHS=
1616
CFLAGS+=-O2 -W -Wall -Wno-unused -Wno-unused-parameter -bundle -fPIC $(foreach ARCH,$(ARCHS),-arch $(ARCH))
1717
LDFLAGS=
1818

1919
all: $(TARGET)
2020

21-
$(TARGET): $(SRC) autoload/vimstack.c
21+
$(TARGET): $(SRC) src/vimstack.c
2222
$(CC) $(CFLAGS) -o $(TARGET) $(SRC) $(LDFLAGS)
2323

2424
.PHONY : clean

0 commit comments

Comments
 (0)