1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

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

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'