rake-convert 0.0.2.3 → 0.0.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/lib/rake/convert.rb +1 -1
- metadata +1 -2
data/lib/rake/convert.rb
CHANGED
|
@@ -283,7 +283,7 @@ task :convert => clean do |task|
|
|
|
283
283
|
|
|
284
284
|
def add_env (*names)
|
|
285
285
|
names.flatten.compact.each {|name|
|
|
286
|
-
$makefile << "#{name} = #{eval("::#{name.to_s.gsub(/\$\{(.*?)\}/, '$(\1)')}
|
|
286
|
+
$makefile << "#{name} = #{eval("::#{name}").to_s.gsub(/\$\{(.*?)\}/, '$(\1)')}\n" if eval("::#{name}") rescue nil
|
|
287
287
|
}
|
|
288
288
|
end
|
|
289
289
|
end
|