Sha256: 4372fda523121a75e57a735a47f8289e1a08eff50f2e6432c497835ef29ee95b

Contents?: true

Size: 683 Bytes

Versions: 4

Compression:

Stored size: 683 Bytes

Contents

require 'origen'
require_relative '../config/application.rb'

# Ensure the app always has the latest version of the updater scripts
app_fix_my_workspace = "#{Origen.root}/bin/fix_my_workspace"
if File.exist?(app_fix_my_workspace)
  $_fix_my_workspace_version_check = true
  load app_fix_my_workspace
end

if $_fix_my_workspace_version != Origen.app!.version
  master_fix_my_workspace = File.expand_path('../../bin/fix_my_workspace', __FILE__)
  FileUtils.mkdir_p "#{Origen.root}/bin" unless File.exist?("#{Origen.root}/bin")
  # When running standalone
  unless master_fix_my_workspace == app_fix_my_workspace
    FileUtils.cp master_fix_my_workspace, app_fix_my_workspace
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
origen_updater-0.7.0 lib/origen_updater.rb
origen_updater-0.6.0 lib/origen_updater.rb
origen_updater-0.5.0 lib/origen_updater.rb
origen_updater-0.3.0 lib/origen_updater.rb