Commit b7b989c38c7b8539ca2cc8a478519e3ebcd7e886

Authored by Rodrigo Souto
1 parent 9d182df9

Removing duplicate tasks

Showing 1 changed file with 1 additions and 43 deletions   Show diff stats
lib/tasks/release.rake
... ... @@ -130,42 +130,6 @@ EOF
130 130 choice
131 131 end
132 132  
133   - desc 'sets the new version on apropriate files'
134   - task :set_version, :release_kind do |t, args|
135   - next if File.exist?("tmp/pending-release")
136   - release_kind = args[:release_kind] || 'stable'
137   -
138   - if release_kind =~ /test/
139   - version_question = "Release candidate of which version"
140   - distribution = 'squeeze-test'
141   - else
142   - version_question = "Version that is being released"
143   - distribution = 'unstable'
144   - end
145   -
146   - version_name = new_version = ask(version_question)
147   -
148   - if release_kind =~ /test/
149   - rc_version = ask('RC version', Time.now.strftime('%Y%m%d%H%M%S'))
150   - version_name += "~rc#{rc_version}"
151   - end
152   - release_message = ask("Release message")
153   -
154   - sh 'git checkout debian/changelog lib/noosfero.rb'
155   - sh "sed -i \"s/VERSION = '[^']*'/VERSION = '#{version_name}'/\" lib/noosfero.rb"
156   - sh "dch --newversion #{version_name} --distribution #{distribution} --force-distribution '#{release_message}'"
157   -
158   - sh 'git diff debian/changelog lib/noosfero.rb'
159   - if confirm("Commit version bump to #{version_name} on #{distribution} distribution")
160   - sh 'git add debian/changelog lib/noosfero.rb'
161   - sh "git commit -m 'Bumping version #{version_name}'"
162   - sh "touch tmp/pending-release"
163   - else
164   - sh 'git checkout debian/changelog lib/noosfero.rb'
165   - abort 'Version update not confirmed. Reverting changes and exiting...'
166   - end
167   - end
168   -
169 133 desc "uploads the packages to the repository"
170 134 task :upload_packages, :release_kind do |t, args|
171 135 release_kind = args[:release_kind] || 'stable'
... ... @@ -212,12 +176,6 @@ EOF
212 176 end
213 177 end
214 178  
215   - desc "uploads the packages to the repository"
216   - task :upload_packages, :release_kind do |t, args|
217   - release_kind = args[:release_kind] || 'stable'
218   - sh "dput --unchecked #{release_kind} #{Dir['pkg/*.changes'].first}"
219   - end
220   -
221 179 desc 'prepares a release tarball'
222 180 task :release, :release_kind do |t, args|
223 181 release_kind = args[:release_kind] || 'stable'
... ... @@ -287,5 +245,5 @@ EOF
287 245 sh 'apt-ftparchive release . > Release'
288 246 end
289 247 end
290   -
  248 +
291 249 end
... ...