oga/task/manifest.rake

10 lines
309 B
Ruby
Raw Normal View History

2014-02-26 18:50:16 +00:00
desc 'Generates the MANIFEST file'
task :manifest do
generated = GENERATED_FILES.map { |path| File.expand_path(path) }
files = (`git ls-files`.split("\n") | generated).sort
handle = File.open(File.expand_path('../../MANIFEST', __FILE__), 'w')
handle.write(files.join("\n"))
handle.close
end