bin/ttk in ttk-0.1.576 vs bin/ttk in ttk-0.1.579

- old
+ new

@@ -1,10 +1,10 @@ #!/usr/bin/env ruby # Author:: The TTK Team. # Copyright:: Copyright (c) 2004, 2005 TTK team. All rights reserved. # License:: LGPL -# $Id: ttk 575 2005-04-14 10:22:30Z polrop $ +# $Id: ttk 578 2005-04-14 20:46:09Z ertai $ require 'pathname' ME = Pathname.new($0).basename @@ -17,10 +17,16 @@ dir = Pathname.new(__FILE__).dirname $: << dir + '..' + 'lib' $: << dir + '..' + 'ruby_ex' $: << dir +REVISION = (ME_DIR + '..' + 'REVISION').read.gsub!(/\D/, '').to_i +DATE = (ME_DIR + '..' + 'DATE').read.sub!(/^.*?\((.*?)\).*?$/, '\1').chomp +require 'erb' +rev, date = REVISION, DATE +VERSION = ERB.new((ME_DIR + '..' + 'VERSION').read, nil, '<%>').result(binding) + require 'ttk' require "#{ME_DIR}/getopts/ttk" begin argv = ARGV.dup @@ -120,12 +126,10 @@ relaunch.chmod(0500) end end - if opts[:cache] - log.close unless log.nil? - end + log.close unless log.nil? if opts[:cache] or opts[:cache_dir] # Ask the user what to do. if ask('Would you relaunch the test suite now (use the cache)', :y) == :y exec relaunch.to_s