equal
deleted
inserted
replaced
48 end |
48 end |
49 else |
49 else |
50 raise new Exception("Unsupported operating system") |
50 raise new Exception("Unsupported operating system") |
51 end |
51 end |
52 end |
52 end |
|
53 end |
|
54 |
|
55 if not defined? REPOSITORYSET |
|
56 REPOSITORYSET = (ENV['REPOSITORYSET'] || 'default') |
53 end |
57 end |
54 |
58 |
55 if not File.exist? 'config.rb' |
59 if not File.exist? 'config.rb' |
56 if defined? PROJECT |
60 if defined? PROJECT |
57 File.open('config.rb', 'w') do | f | |
61 File.open('config.rb', 'w') do | f | |
65 # This file SHOULD NOT be checked in a repository. |
69 # This file SHOULD NOT be checked in a repository. |
66 # |
70 # |
67 COMMENT |
71 COMMENT |
68 f.puts "PROJECT='#{PROJECT}' if not defined? PROJECT" |
72 f.puts "PROJECT='#{PROJECT}' if not defined? PROJECT" |
69 f.puts "ARCH='#{ARCH}' if not defined? ARCH" |
73 f.puts "ARCH='#{ARCH}' if not defined? ARCH" |
|
74 f.puts "REPOSITORYSET='#{REPOSITORYSET}' if not defined? REPOSITORYSET" |
70 if defined? PROJECT_DIRS |
75 if defined? PROJECT_DIRS |
71 f.puts "PROJECT_DIRS='#{PROJECT_DIRS}' if not defined? PROJECT_DIRS" |
76 f.puts "PROJECT_DIRS='#{PROJECT_DIRS}' if not defined? PROJECT_DIRS" |
72 end |
|
73 if defined? REPOSITORYSET |
|
74 f.puts "REPOSITORYSET='#{REPOSITORYSET}' if not defined? REPOSITORYSET" |
|
75 end |
77 end |
76 end |
78 end |
77 end |
79 end |
78 end |
80 end |
79 |
81 |