As part of packaging, fix up some permissions that can apparently go screwy.

Closes gh-287
This commit is contained in:
Nathan Weizenbaum 2010-09-29 10:38:06 -07:00
parent 3e7116a13e
commit 551fd06108
3 changed files with 19 additions and 1 deletions

View File

@ -42,7 +42,7 @@ END
# Don't use Rake::GemPackageTast because we want prerequisites to run
# before we load the gemspec.
desc "Build all the packages."
task :package => [:revision_file, :submodules] do
task :package => [:permissions, :revision_file, :submodules] do
load scope('haml.gemspec')
Gem::Builder.new(HAML_GEMSPEC).build
pkg = "#{HAML_GEMSPEC.name}-#{HAML_GEMSPEC.version}"
@ -54,6 +54,16 @@ task :package => [:revision_file, :submodules] do
sh %{gzip pkg/#{pkg}.tar}
end
task :permissions do
sh %{chmod -R a+rx bin}
sh %{chmod -R a+r .}
require 'shellwords'
Dir.glob('test/**/*_test.rb') do |file|
next if file =~ %r{^test/haml/spec/}
sh %{chmod a+rx #{Shellwords.shellescape file}}
end
end
task :revision_file do
require 'lib/haml'

View File

@ -3,6 +3,10 @@
* Table of contents
{:toc}
## 3.0.20 (Unreleased)
* Fix some permissions errors.
## 3.0.19
[Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.19).

View File

@ -3,6 +3,10 @@
* Table of contents
{:toc}
## 3.0.20 (Unreleased)
* Fix some permissions errors.
## 3.0.19
[Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.19).