build-tool 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitattributes +3 -0
- data/.gitignore +8 -0
- data/History.txt +11 -0
- data/Manifest.txt +2 -0
- data/lib/build-tool.rb +1 -1
- data/lib/build-tool/build-system/autoconf.rb +6 -2
- data/lib/build-tool/cfg/visitor.rb +24 -20
- data/lib/build-tool/commands/gc.rb +1 -1
- data/lib/build-tool/commands/history.rb +8 -2
- data/lib/build-tool/history.rb +5 -0
- metadata +7 -26
- data.tar.gz.sig +0 -0
- metadata.gz.sig +0 -1
data/.gitattributes
ADDED
data/.gitignore
ADDED
data/History.txt
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
== 0.3.3
|
2
|
+
- Feature
|
3
|
+
- The history command now supports the -n --number [COUNT] option. Use it to specify how many
|
4
|
+
entries you want to see.
|
5
|
+
- Bugfixes
|
6
|
+
- Fix the gc command. Sqlite really starts to enforce foreign key constraints.
|
7
|
+
- Support arbitrary build options for autoconf
|
8
|
+
- Do not reassociate a module / environment with a different feature when just changing it. The
|
9
|
+
initial associtation is correct.
|
10
|
+
|
11
|
+
|
1
12
|
== 0.3.2
|
2
13
|
- Main Features
|
3
14
|
- none
|
data/Manifest.txt
CHANGED
data/lib/build-tool.rb
CHANGED
@@ -197,11 +197,14 @@ class EnvironmentDeclarationNodeVisitor < ListVisitor
|
|
197
197
|
def visit_EnvironmentDeclarationNode( node )
|
198
198
|
name = node.values[0]
|
199
199
|
@environment = configuration.environment( name )
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
@environment
|
204
|
-
configuration.active_feature.
|
200
|
+
if @environment.nil?
|
201
|
+
@environment = BuildTool::Environment.new( name )
|
202
|
+
# Only add a environment to a feature if this is the first time it is declared.
|
203
|
+
configuration.add_environment( @environment )
|
204
|
+
if !configuration.active_feature.nil?
|
205
|
+
@environment.feature = configuration.active_feature
|
206
|
+
configuration.active_feature.environments << @environment
|
207
|
+
end
|
205
208
|
end
|
206
209
|
if node.values[1] == :INHERITANCE
|
207
210
|
parentName = node.values[2]
|
@@ -362,7 +365,7 @@ def visit_BuildSystemDeclarationNode( node )
|
|
362
365
|
|
363
366
|
def visit_LongDescriptionNode( node )
|
364
367
|
if @module.long_description
|
365
|
-
logger.warn "Overwriting long description for
|
368
|
+
logger.warn "Overwriting long description for module #{@module.name}"
|
366
369
|
end
|
367
370
|
@module.long_description = node.values
|
368
371
|
end
|
@@ -416,23 +419,24 @@ def visit_ModuleDeclarationNode( node )
|
|
416
419
|
if inheritance
|
417
420
|
raise ConfigurationError, "Attempt change existing module #{name} with inheritance!"
|
418
421
|
end
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
422
|
+
else
|
423
|
+
parent = nil
|
424
|
+
if inheritance
|
425
|
+
parentName = node.values[2]
|
426
|
+
parent = configuration.module( parentName )
|
427
|
+
if parent.nil?
|
428
|
+
raise ConfigurationError,
|
429
|
+
"Module %s attempts to inherit from not existant module %s" %
|
430
|
+
[ name, parentName ]
|
431
|
+
end
|
426
432
|
end
|
427
433
|
@module = BuildTool::Module.new( name, parent )
|
428
434
|
configuration.add_module( @module )
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
@module.feature = configuration.active_feature
|
435
|
-
configuration.active_feature.modules << @module
|
435
|
+
# Only add a module to a feature if it is the first time declared.
|
436
|
+
if !configuration.active_feature.nil?
|
437
|
+
@module.feature = configuration.active_feature
|
438
|
+
configuration.active_feature.modules << @module
|
439
|
+
end
|
436
440
|
end
|
437
441
|
self.visit_nodes( stmts )
|
438
442
|
end
|
@@ -25,6 +25,12 @@ def initialize_options
|
|
25
25
|
@long = true
|
26
26
|
}
|
27
27
|
super
|
28
|
+
|
29
|
+
@lines = nil
|
30
|
+
options.on( "-n", "--number [COUNT]", "Number of lines to show." ) { |t|
|
31
|
+
@lines = t.to_i
|
32
|
+
}
|
33
|
+
super
|
28
34
|
end
|
29
35
|
|
30
36
|
def applicable?
|
@@ -59,7 +65,7 @@ def show_command( cmd )
|
|
59
65
|
|
60
66
|
def show_command_history
|
61
67
|
# *TODO* Make the number of printed command configurable
|
62
|
-
BuildTool::History::CommandLog.last(50).reverse().each do |cmd|
|
68
|
+
BuildTool::History::CommandLog.last(@lines || 50 ).reverse().each do |cmd|
|
63
69
|
show_command cmd
|
64
70
|
end
|
65
71
|
|
@@ -72,7 +78,7 @@ def show_module_history( modname )
|
|
72
78
|
return usage( "Unknown module #{modname}" )
|
73
79
|
end
|
74
80
|
|
75
|
-
BuildTool::History::CommandLog.last_by_module( modname ).reverse.each do |cmd|
|
81
|
+
BuildTool::History::CommandLog.last_by_module( modname, @lines || 3 ).reverse.each do |cmd|
|
76
82
|
show_command( cmd )
|
77
83
|
|
78
84
|
last_module=""
|
data/lib/build-tool/history.rb
CHANGED
metadata
CHANGED
@@ -1,42 +1,21 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: build-tool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 3
|
10
|
+
version: 0.3.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Jansen
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
|
-
cert_chain:
|
17
|
-
- |
|
18
|
-
-----BEGIN CERTIFICATE-----
|
19
|
-
MIIDOjCCAiKgAwIBAgIBADANBgkqhkiG9w0BAQUFADBDMQwwCgYDVQQDDANrZGUx
|
20
|
-
HjAcBgoJkiaJk/IsZAEZFg5taWNoYWVsLWphbnNlbjETMBEGCgmSJomT8ixkARkW
|
21
|
-
A2JpejAeFw0wOTA2MDkyMDI1MThaFw0xMDA2MDkyMDI1MThaMEMxDDA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-
-----END CERTIFICATE-----
|
16
|
+
cert_chain: []
|
38
17
|
|
39
|
-
date: 2010-
|
18
|
+
date: 2010-08-08 00:00:00 +02:00
|
40
19
|
default_executable:
|
41
20
|
dependencies:
|
42
21
|
- !ruby/object:Gem::Dependency
|
@@ -198,6 +177,8 @@ extra_rdoc_files:
|
|
198
177
|
- Manifest.txt
|
199
178
|
- README.txt
|
200
179
|
files:
|
180
|
+
- .gitattributes
|
181
|
+
- .gitignore
|
201
182
|
- History.txt
|
202
183
|
- Manifest.txt
|
203
184
|
- README.txt
|
data.tar.gz.sig
DELETED
Binary file
|
metadata.gz.sig
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
%z��0�B*K����3�������/�6Zo�������li��X��3�'�TW�F�u_v'hp���!�#���Wd����S��Y3�U�a��%�q7�� ��@$2��7g�1�_�
|