Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 18 lines (13 sloc) 0.455 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

timestamp = Time.now.strftime("%Y-%m-%d %H:%M")

commit = nil
begin
  commit_lines = `git branch -v --no-color`.to_a
  commit = commit_lines.grep(/^\* /).first.split[2]
rescue Exception => e
  $stderr.puts "Had a problem when finding out commit info - #{e} (THIS IS NOT A CATASTROPHIC ERROR, you can still build Ioke)"
  commit = "???"
end

File.open("version_data.properties", "w") do |f|
  f.puts("DATE=#{timestamp}")
  f.puts("COMMIT=#{commit}")
end

Something went wrong with that request. Please try again.