Sha256: 93ebbc9dfcc368e3bafa1143ef604d06b2532f738ecba54fc04f6f1d43189cbb

Contents?: true

Size: 1.33 KB

Versions: 14

Compression:

Stored size: 1.33 KB

Contents

# encoding: ascii-8bit

# Copyright 2022 Ball Aerospace & Technologies Corp.
# All Rights Reserved.
#
# This program is free software; you can modify and/or redistribute it
# under the terms of the GNU Affero General Public License
# as published by the Free Software Foundation; version 3 with
# attribution addendums as found in the LICENSE.txt
#
# 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 Affero General Public License for more details.
#
# This program may also be used under the terms of a commercial or
# enterprise edition license of COSMOS if purchased from the
# copyright holder

PLUGIN_NAME = Dir['*.gemspec'][0].split('.')[0..-2].join('.')

task :require_version do
  if ENV['VERSION']
    if ENV['VERSION'] =~ /-/
      # Add Timestamp to prerelease versions
      ENV['VERSION'] = ENV['VERSION'] + "." + Time.now.utc.strftime("%Y%m%d%H%M%S")
    end
  else
    puts "VERSION is required: rake <task> VERSION=X.X.X"
    exit 1
  end
end

task :build => [:require_version] do
  _, platform, *_ = RUBY_PLATFORM.split("-")
  if platform == 'mswin32' or platform == 'mingw32'
    puts "Warning: Building gem on Windows will lose file permissions"
  end
  system("gem build #{PLUGIN_NAME}")
end

Version data entries

14 entries across 14 versions & 14 rubygems

Version Path
cosmosc2-tool-tlmviewer-5.0.5 Rakefile
cosmosc2-tool-tlmgrapher-5.0.5 Rakefile
cosmosc2-tool-scriptrunner-5.0.5 Rakefile
cosmosc2-tool-packetviewer-5.0.5 Rakefile
cosmosc2-tool-limitsmonitor-5.0.5 Rakefile
cosmosc2-tool-handbooks-5.0.5 Rakefile
cosmosc2-tool-dataviewer-5.0.5 Rakefile
cosmosc2-tool-dataextractor-5.0.5 Rakefile
cosmosc2-tool-cmdtlmserver-5.0.5 Rakefile
cosmosc2-tool-cmdsender-5.0.5 Rakefile
cosmosc2-tool-calendar-5.0.5 Rakefile
cosmosc2-tool-base-5.0.5 Rakefile
cosmosc2-tool-autonomic-5.0.5 Rakefile
cosmosc2-tool-admin-5.0.5 Rakefile