1
0
Fork 0
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:
Nathan Weizenbaum 2008-05-24 02:21:30 -07:00
parent beb6acc234
commit 5926e43df1

View file

@ -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