]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - launch_here.rb
fix: update deprecated git option
[user/henk/code/ruby/rbot.git] / launch_here.rb
index 8877aadfc71e0fac76a645caca202bb7244a321d..118f02ab5d759ee077c9083c404a61340de73690 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
 #
 # Load rbot from this directory. (No need to install it with setup.rb)
 #
@@ -8,7 +8,7 @@ puts "Running from #{SCM_DIR}"
 
 $:.unshift File.join(SCM_DIR, 'lib')
 
-$version = '0.9.15-git'
+$version = '0.9.15'
 
 pwd = Dir.pwd
 begin
@@ -16,7 +16,7 @@ begin
 
   if File.exists? '.git'
     begin
-      git_out = `git log -1 --pretty=raw | git name-rev --stdin`.split("\n")
+      git_out = `git log -1 --pretty=raw | git name-rev --annotate-stdin`.split("\n")
       commit, branch_spec = git_out.first.scan(/^commit (\S+)(?: \((\S+)\))?$/).first
       $version_timestamp = git_out[4].split[-2].to_i
       subject = git_out[6].strip rescue ""