mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Always include REVISION in the gemspec, and create a dummy in case it isn't created elsewhere.
This commit is contained in:
parent
beb6acc234
commit
5926e43df1
1 changed files with 5 additions and 1 deletions
|
@ -18,10 +18,14 @@ HAML_GEMSPEC = Gem::Specification.new do |spec|
|
|||
END
|
||||
#'
|
||||
|
||||
# We need the revision file to exist,
|
||||
# so we just create it if it doesn't.
|
||||
# It'll usually just get overwritten, though.
|
||||
File.open('REVISION', 'w') { |f| f.puts "(unknown)" } unless File.exist?('REVISION')
|
||||
readmes = FileList.new('*') do |list|
|
||||
list.exclude(/(^|[^.a-z])[a-z]+/)
|
||||
list.exclude('TODO')
|
||||
list.include('REVISION') if File.exist?('REVISION')
|
||||
list.include('REVISION')
|
||||
end.to_a
|
||||
spec.executables = ['haml', 'html2haml', 'sass', 'css2sass']
|
||||
spec.files = FileList['lib/**/*', 'bin/*', 'test/**/*', 'Rakefile', 'init.rb'].to_a + readmes
|
||||
|
|
Loading…
Reference in a new issue