forked from petemounce/rake-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile.rb
46 lines (38 loc) · 1.29 KB
/
Rakefile.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# -*- ruby -*-
require 'rubygems'
require 'hoe'
require 'Pathname'
require 'rake/clean'
Hoe.new('rake-dotnet', '0.1.9') do |p|
p.author = 'Peter Mounce'
p.description = 'Making a .NET build-automation dev\'s life easier, one angle-bracket at a time'
p.email = '[email protected]'
p.summary = 'Build automation for .NET builds'
p.rubyforge_name = 'rake-dotnet' # if different than lowercase project name
p.developer('Peter Mounce', '[email protected]')
p.remote_rdoc_dir = ''
p.extra_deps = ['rake']
p.url = 'http://blog.neverrunwithscissors.com/tag/rake-dotnet'
end
generated_library = File.join('lib','rake_dotnet.rb')
CLOBBER.include generated_library
file generated_library do |f|
text = ''
files = ['header.rb','defaults.rb','assemblyinfo.rb','fxcop.rb','harvester.rb','msbuild.rb','ncover.rb','package.rb','sevenzip.rb','svn.rb','version.rb','xunit.rb']
gl = File.open(generated_library, 'a')
files.each do |file|
text = File.read(File.join('lib', file))
gl.puts text
gl.puts
gl.puts
end
gl.close unless gl.closed?
end
desc 'Generate the concatenated library'
task :generate_lib => generated_library
task :check_manifest => generated_library
task :test => generated_library
task :uninstall_gem do
sh "gem uninstall rake-dotnet"
end
# vim: syntax=Ruby