Skip to content

Commit

Permalink
Merge pull request #139 from mcorino/mco-prepare-210-release
Browse files Browse the repository at this point in the history
Update versioning for AXCIOMA 2.1.0 release
  • Loading branch information
mcorino committed Nov 9, 2020
2 parents 887dada + 8f7004f commit d040b23
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 29 deletions.
2 changes: 1 addition & 1 deletion brix/ciaox11/require.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module CIAOX11
TITLE = 'CIAOX11'.freeze
DESC = 'BRIX11 CIAOX11 brix collection'.freeze
COPYRIGHT = "Copyright (c) 2014-#{Time.now.year} Remedy IT Expertise BV, The Netherlands".freeze
VERSION = {major: 0, minor: 1, release: 0}
VERSION = {major: 1, minor: 0, release: 0}

Collection.configure(:ciaox11, ROOT, TITLE, DESC, COPYRIGHT, VERSION) do |cfg|

Expand Down
2 changes: 1 addition & 1 deletion connectors/psdd4ccm/brix/psdd4ccm/require.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module PSDD4CCM
TITLE = 'PSDD4CCM'.freeze
DESC = 'BRIX11 PSDD4CCM brix collection'.freeze
COPYRIGHT = "Copyright (c) 2014-#{Time.now.year} Remedy IT Expertise BV, The Netherlands".freeze
VERSION = {major: 0, minor: 1, release: 0}
VERSION = {major: 1, minor: 0, release: 0}

Collection.configure(:psdd4ccm, ROOT, TITLE, DESC, COPYRIGHT, VERSION) do |cfg|

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module PSDD4CCM_ZMQ
TITLE = 'PSDD4CCM_ZMQ'
DESC = 'BRIX11 PSDD4CCM ZMQ brix collection'
COPYRIGHT = "Copyright (c) 2014-#{Time.now.year} Remedy IT Expertise BV, The Netherlands"
VERSION = {major: 0, minor: 1, release: 0}
VERSION = {major: 1, minor: 0, release: 0}

Collection.configure(:psdd4ccm_zmq, ROOT, TITLE, DESC, COPYRIGHT, VERSION) do |cfg|

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def self.add_extended_options(ol)

# Configure facet
#
Backend::Facet.configure('psdd4ccm', File.dirname(__FILE__), TITLE, COPYRIGHT, {major: 1, minor: 0, release: 0}) do |fctcfg|
Backend::Facet.configure('psdd4ccm', File.dirname(__FILE__), TITLE, COPYRIGHT, IDL::CCMX11.ciaox11_version) do |fctcfg|

# setup facet option handling
#
Expand Down
2 changes: 1 addition & 1 deletion ddsx11/vendors/ndds/brix/ndds/require.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module NDDS
TITLE = 'NDDS'.freeze
DESC = 'BRIX11 NDDS brix collection'.freeze
COPYRIGHT = "Copyright (c) 2014-#{Time.now.year} Remedy IT Expertise BV, The Netherlands".freeze
VERSION = {major: 0, minor: 1, release: 0}
VERSION = {major: 1, minor: 0, release: 0}

Collection.configure(:ndds, ROOT, TITLE, DESC, COPYRIGHT, VERSION) do |cfg|

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module NDDS

## Configure facet
#
Backend::Facet.configure('dds4ndds', File.dirname(__FILE__), TITLE, COPYRIGHT, {major: 1, minor: 0, release: 0}) do |fctcfg|
Backend::Facet.configure('dds4ndds', File.dirname(__FILE__), TITLE, COPYRIGHT, IDL::CCMX11.ciaox11_version) do |fctcfg|

# optionally define dependencies on other facets
# specify dependencies either as:
Expand Down
45 changes: 26 additions & 19 deletions ridlbe/ccmx11/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,31 +89,38 @@ def self.add_extended_options(ol)
end
end # add_extended_options

VERSION_REGEXP = /\#\s*define\s+CIAOX11_(\w+)_VERSION\s+(\d+)/

def self.determine_ciaox11_version()
x11_version = {
:major => 0,
:minor => 0,
:micro => 0
}

base = File.join(File.dirname(__FILE__), '..', '..', 'ciaox11','versionx11.h')
File.open(base, "r") do |file|
while (line = file.gets)
if VERSION_REGEXP =~ line
x11_version[$1.downcase.to_sym] = $2.to_i
class << self

VERSION_REGEXP = /\#\s*define\s+CIAOX11_(\w+)_VERSION\s+(\d+)/

def determine_ciaox11_version
x11_version = {
:major => 0,
:minor => 0,
:micro => 0
}

base = File.join(File.dirname(__FILE__), '..', '..', 'ciaox11','versionx11.h')
File.open(base, "r") do |file|
while (line = file.gets)
if VERSION_REGEXP =~ line
x11_version[$1.downcase.to_sym] = $2.to_i
end
end
end
end
x11_version[:release] ||= x11_version[:micro]
x11_version
end # determine_ciaox11_version
x11_version[:release] ||= x11_version[:micro]
x11_version
end # determine_ciaox11_version
private :determine_ciaox11_version

def ciaox11_version
@ciaox11_version ||= determine_ciaox11_version
end
end

## Configure C++11 backend
#
Backend.configure('ccmx11', File.dirname(__FILE__), TITLE, COPYRIGHT, IDL::CCMX11.determine_ciaox11_version()) do |becfg|
Backend.configure('ccmx11', File.dirname(__FILE__), TITLE, COPYRIGHT, IDL::CCMX11.ciaox11_version) do |becfg|

# load c++11 backend as base
becfg.add_backend('c++11')
Expand Down
2 changes: 1 addition & 1 deletion ridlbe/ccmx11/facets/ami4ccm/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module AMI4CCM

## Configure facet
#
Backend::Facet.configure('ami4ccm', File.dirname(__FILE__), TITLE, COPYRIGHT, {major: 1, minor: 0, release: 0}) do |fctcfg|
Backend::Facet.configure('ami4ccm', File.dirname(__FILE__), TITLE, COPYRIGHT, IDL::CCMX11.ciaox11_version) do |fctcfg|

def self.add_extended_options(ol)
ol.for_switch '-G{generation options}', :type => String, :separator => true do |swcfg|
Expand Down
2 changes: 1 addition & 1 deletion ridlbe/ccmx11/facets/corba4ccm/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module CORBA

## Configure facet
#
Backend::Facet.configure('corba4ccm', File.dirname(__FILE__), TITLE, COPYRIGHT, {major: 1, minor: 0, release: 0}) do |fctcfg|
Backend::Facet.configure('corba4ccm', File.dirname(__FILE__), TITLE, COPYRIGHT, IDL::CCMX11.ciaox11_version) do |fctcfg|

def self.add_extended_options(ol)

Expand Down
2 changes: 1 addition & 1 deletion ridlbe/ccmx11/facets/dds/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def self.add_extended_options(ol)

## Configure facet
#
Backend::Facet.configure('dds', File.dirname(__FILE__), TITLE, COPYRIGHT, {major: 1, minor: 0, release: 0}) do |fctcfg|
Backend::Facet.configure('dds', File.dirname(__FILE__), TITLE, COPYRIGHT, IDL::CCMX11.ciaox11_version) do |fctcfg|

# setup facet option handling
#
Expand Down
2 changes: 1 addition & 1 deletion ridlbe/ccmx11/facets/dds4ccm/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module DDS4CCM

# Configure facet
#
Backend::Facet.configure('dds4ccm', File.dirname(__FILE__), TITLE, COPYRIGHT, {major: 1, minor: 0, release: 0}) do |fctcfg|
Backend::Facet.configure('dds4ccm', File.dirname(__FILE__), TITLE, COPYRIGHT, IDL::CCMX11.ciaox11_version) do |fctcfg|

# optionally define dependencies on other facets
# specify dependencies either as:
Expand Down

0 comments on commit d040b23

Please sign in to comment.