wel even slim met ${HOME} omgaan

This commit is contained in:
Ward Wouts 2005-01-28 20:13:54 +00:00
parent 70c130d89a
commit c23409e853

View file

@ -1,6 +1,6 @@
#!/usr/local/bin/ruby -w #!/usr/local/bin/ruby -w
# $Dwarf: ripnews.rb,v 1.85 2004/10/14 11:47:37 ward Exp $ # $Dwarf: ripnews.rb,v 1.86 2005/01/28 20:06:45 ward Exp $
# $Source$ # $Source$
# #
@ -193,6 +193,7 @@ def parse_config(default = {})
config = {} config = {}
lines.collect!{|x| lines.collect!{|x|
x.gsub!(/\$\{HOME\}/, "#{ENV['HOME']}")
if x =~ /^\s*INCLUDEFILE=(.*?)\s*$/i if x =~ /^\s*INCLUDEFILE=(.*?)\s*$/i
x = File.new($1).readlines x = File.new($1).readlines
end end