Skip to content

Commit 27a8559

Browse files
committed
version 0.1.0
1 parent 812aa95 commit 27a8559

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.git* export-ignore
2+
*.md export-ignore
3+
dist.* export-ignore

autoload/ghcmod.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,4 +409,8 @@ function! ghcmod#print_warning(msg)"{{{
409409
echohl None
410410
endfunction"}}}
411411

412+
function! ghcmod#version()"{{{
413+
return [0, 1, 0]
414+
endfunction"}}}
415+
412416
" vim: set ts=2 sw=2 et fdm=marker:

dist.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
exec vim -N -u NONE --cmd 'set runtimepath=.' -S dist.vim -c quit

dist.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
let s:version = join(ghcmod#version(), '.')
2+
echo system(printf('git archive --prefix=ghcmod-vim-%s/ -o ghcmod-vim-%s.zip v%s', s:version, s:version, s:version))

0 commit comments

Comments
 (0)