Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add Parrot Revision to smolder report, and adjust method for getting …
…commit id. (jdv79++)
  • Loading branch information
treed committed Sep 15, 2009
1 parent 7d77922 commit c25a9e2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Rakefile
Expand Up @@ -224,6 +224,11 @@ task "report.tar.gz" do
'Submitter' => get_submitter,
'Commit' => get_commit
}

IO.popen("#{PARROT_CONFIG} revision", "r") do |p|
$meta['Parrot Revision'] = p.readline.chomp.to_i
end

require 'yaml'
File.open('report/meta.yml','w') do |f|
YAML::dump($meta, f)
Expand Down Expand Up @@ -269,7 +274,7 @@ def get_submitter
end

def get_commit
`git log -1 --format=%H`.chomp
`git log -1 --pretty=format:%H`.chomp
end

file "build.yaml" do
Expand Down

0 comments on commit c25a9e2

Please sign in to comment.