Since REVISION is always generated when running Rake, always get rid of it when we're done.

This commit is contained in:
Nathan Weizenbaum 2008-05-28 20:03:34 -07:00
parent 210429f06e
commit e8142f3f7b
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ end
Rake::Task[:package].prerequisites.insert(0, :revision_file)
# We also need to get rid of this file after packaging.
Rake::Task[:package].enhance { File.delete('REVISION') if File.exists?('REVISION') }
at_exit { File.delete('REVISION') rescue nil }
task :install => [:package] do
sudo = RUBY_PLATFORM =~ /win32/ ? '' : 'sudo'