Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (27 sloc) 0.728 kB
require 'rake/clean'
CLEAN.include( 'agtd.vba' )
COMPONENTS =
"doc/agtd.txt" ,
"ftplugin/agtd.vim",
"plugin/agtd.vim",
"syntax/agtd.vim"
VIMDIR = (ENV['VIMRUNTIME'] || ENV['HOME'] + "/.vim")
abort if not File.directory? VIMDIR
desc "Get AGTD files from VIM folder"
task :get do
COMPONENTS.each do |target|
source = VIMDIR + target
unless uptodate?(target, source)
copy source, target
end
end
end
desc "Pack all files into a VBA file (release)"
task :vba => :clean do
abort("ERROR Temporal file already exists!") if File.exist? 'f.tmp'
File.open('f.tmp', 'w') do |out|
out.puts COMPONENTS
end
sh %{VIM -s build.vim}
#rm f.tmp
end
Jump to Line
Something went wrong with that request. Please try again.