Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rakefile: use SOURCE_HTML consistently.

  • Loading branch information...
commit bd8beb06c99b0361e7267f7fefc27e64cac647ec 1 parent dc815dc
@runpaint authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Rakefile
View
4 Rakefile
@@ -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
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.