@@ -69,15 +69,16 @@ namespace :source do
69
69
info.output_file = PROPS
70
70
commit_hash = `git log -1 --format="%H%"`
71
71
72
- info.version = info.file_version = get_version
73
- info.informational_version = Platform.config['version']
72
+ info.title = Platform.config['assembly_info']['title']
73
+ info.version = get_version
74
+ info.informational_version = Platform.config['assembly_info']['version']
74
75
info.company_name = 'http://fluentnhibernate.org'
75
76
info.product_name = 'FluentNHibernate'
76
77
info.description = commit_hash[0..(commit_hash.length - 3)]
77
78
info.copyright = "Copyright 2008-#{Time.new.year} James Gregory and contributors (Paul Batum, Hudson Akridge et al). All rights reserved."
78
79
info.namespaces = ['System.Security']
79
80
80
- puts "The new build number is #{info.version}"
81
+ puts "The new version is #{info.version}"
81
82
end
82
83
83
84
task :nhibernate_version, :nhibernate_version do |t,args|
@@ -143,6 +144,27 @@ namespace :docs do
143
144
end
144
145
end
145
146
147
+ namespace :git do
148
+ desc "Tags the current release"
149
+ task :tag, :assembly_info do |asm, args|
150
+ args.with_defaults(:assembly_info => Platform.config['assembly_info']['version'])
151
+
152
+ sh "git tag \"v#{args.version}\""
153
+ end
154
+
155
+ desc "Updates the version and tags the release"
156
+ task :prep_release, :assembly_info do |task, args|
157
+ if !args.version.nil?
158
+ task(:update_version).invoke(args.version)
159
+
160
+ sh "git add #{CONFIG} #{NUSPEC}"
161
+ sh "git commit -m \"Updated version to #{args.version}\""
162
+
163
+ task(:tag).invoke(args.version)
164
+ end
165
+ end
166
+ end
167
+
146
168
namespace :package do
147
169
task :prepare_dist_directory do
148
170
FileUtils.rm_rf 'dist'
@@ -239,4 +261,4 @@ task :sln do
239
261
Thread.new do
240
262
system "devenv #{SLN}"
241
263
end
242
- end
264
+ end
0 commit comments