Sha256: 4e46c5d683634242f892de565cac70c919c0537018f1170e02e9bd0e85485031

Contents?: true

Size: 1.35 KB

Versions: 2

Compression:

Stored size: 1.35 KB

Contents

#!/usr/bin/env ruby

=begin rdoc

This program is copyright 2006,2009 by Vincent Fourmond.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
=end

# Coverage on demand
if ARGV[0] == '--coverage'
  ARGV.shift
  require 'simplecov'
  nm = ARGV.shift
  if nm =~ /%/                  # Some formatting
    id = begin
           File.open(".cov") do |f|
        f.read.to_i + 1
      end
         rescue
           0
         end
    nm = nm % id
    File.open('.cov', 'w') do |f|
      f.puts id.to_s
    end
  end
  SimpleCov.command_name nm
  SimpleCov.start do
    filters.clear
    add_filter do |src|
      !(src.filename =~ /ctioga2/)
    end
  end
end

require 'ctioga2/plotmaker'

plot_maker = CTioga2::PlotMaker.new

exit(plot_maker.run(ARGV))

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ctioga2-0.14.1 bin/ctioga2
ctioga2-0.14 bin/ctioga2