From 27a855937821cf352385b54005bf1d2f36f6261d Mon Sep 17 00:00:00 2001 From: eagletmt Date: Sun, 1 Apr 2012 03:43:16 +0900 Subject: [PATCH] version 0.1.0 --- .gitattributes | 3 +++ autoload/ghcmod.vim | 4 ++++ dist.sh | 2 ++ dist.vim | 2 ++ 4 files changed, 11 insertions(+) create mode 100644 .gitattributes create mode 100755 dist.sh create mode 100644 dist.vim diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..5a26048 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +.git* export-ignore +*.md export-ignore +dist.* export-ignore diff --git a/autoload/ghcmod.vim b/autoload/ghcmod.vim index 5205c11..80b8744 100644 --- a/autoload/ghcmod.vim +++ b/autoload/ghcmod.vim @@ -409,4 +409,8 @@ function! ghcmod#print_warning(msg)"{{{ echohl None endfunction"}}} +function! ghcmod#version()"{{{ + return [0, 1, 0] +endfunction"}}} + " vim: set ts=2 sw=2 et fdm=marker: diff --git a/dist.sh b/dist.sh new file mode 100755 index 0000000..182376b --- /dev/null +++ b/dist.sh @@ -0,0 +1,2 @@ +#!/bin/sh +exec vim -N -u NONE --cmd 'set runtimepath=.' -S dist.vim -c quit diff --git a/dist.vim b/dist.vim new file mode 100644 index 0000000..0227493 --- /dev/null +++ b/dist.vim @@ -0,0 +1,2 @@ +let s:version = join(ghcmod#version(), '.') +echo system(printf('git archive --prefix=ghcmod-vim-%s/ -o ghcmod-vim-%s.zip v%s', s:version, s:version, s:version))