public
Description: ioke is a new language for the JVM, based on Io and other languages.
Homepage: http://ioke.org
Clone URL: git://github.com/olabini/ioke.git
olabini (author)
Fri Nov 06 06:53:27 -0800 2009
commit  00f4e8955a42ce7d38fa3913bd905bfcbebcee38
tree    81f6a6b482e3d3deafe3323f3f09e310a25ee9d0
parent  185391fb22028c44a25ef9b61fea1bcc5c13ab2d
ioke / generate_filter_data.rb
100644 18 lines (13 sloc) 0.455 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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