mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
As part of packaging, fix up some permissions that can apparently go screwy.
Closes gh-287
This commit is contained in:
parent
3e7116a13e
commit
551fd06108
3 changed files with 19 additions and 1 deletions
12
Rakefile
12
Rakefile
|
@ -42,7 +42,7 @@ END
|
||||||
# Don't use Rake::GemPackageTast because we want prerequisites to run
|
# Don't use Rake::GemPackageTast because we want prerequisites to run
|
||||||
# before we load the gemspec.
|
# before we load the gemspec.
|
||||||
desc "Build all the packages."
|
desc "Build all the packages."
|
||||||
task :package => [:revision_file, :submodules] do
|
task :package => [:permissions, :revision_file, :submodules] do
|
||||||
load scope('haml.gemspec')
|
load scope('haml.gemspec')
|
||||||
Gem::Builder.new(HAML_GEMSPEC).build
|
Gem::Builder.new(HAML_GEMSPEC).build
|
||||||
pkg = "#{HAML_GEMSPEC.name}-#{HAML_GEMSPEC.version}"
|
pkg = "#{HAML_GEMSPEC.name}-#{HAML_GEMSPEC.version}"
|
||||||
|
@ -54,6 +54,16 @@ task :package => [:revision_file, :submodules] do
|
||||||
sh %{gzip pkg/#{pkg}.tar}
|
sh %{gzip pkg/#{pkg}.tar}
|
||||||
end
|
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
|
task :revision_file do
|
||||||
require 'lib/haml'
|
require 'lib/haml'
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,10 @@
|
||||||
* Table of contents
|
* Table of contents
|
||||||
{:toc}
|
{:toc}
|
||||||
|
|
||||||
|
## 3.0.20 (Unreleased)
|
||||||
|
|
||||||
|
* Fix some permissions errors.
|
||||||
|
|
||||||
## 3.0.19
|
## 3.0.19
|
||||||
|
|
||||||
[Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.19).
|
[Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.19).
|
||||||
|
|
|
@ -3,6 +3,10 @@
|
||||||
* Table of contents
|
* Table of contents
|
||||||
{:toc}
|
{:toc}
|
||||||
|
|
||||||
|
## 3.0.20 (Unreleased)
|
||||||
|
|
||||||
|
* Fix some permissions errors.
|
||||||
|
|
||||||
## 3.0.19
|
## 3.0.19
|
||||||
|
|
||||||
[Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.19).
|
[Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.19).
|
||||||
|
|
Loading…
Add table
Reference in a new issue