Skip to content

Commit

Permalink
Rakefile: use SOURCE_HTML consistently.
Browse files Browse the repository at this point in the history
  • Loading branch information
runpaint committed May 10, 2009
1 parent dc815dc commit bd8beb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ task :images => IMAGES do |t|
end

task OUTPUT_HTML => [:output, :images]
file OUTPUT_HTML => FileList['text/**/*.html'] do |t|
file OUTPUT_HTML => SOURCE_HTML do |t|
File.open(t.name,'w') do |out|
SOURCE_HTML.sort.each do |source|
out.puts File.open(source).read
Expand All @@ -30,7 +30,7 @@ task :ilinks => OUTPUT_HTML do |t|
require 'hpricot'
target = {}
source = {}
FileList['text/**/*.html'].each do |file|
SOURCE_HTML.each do |file|
doc = Hpricot(File.open(file, 'r'))
doc.search("a[@href*='#']").each do |a|
source[a['href'][/[^#]+/]] = file
Expand Down

0 comments on commit bd8beb0

Please sign in to comment.