Permalink
Browse files

Changed the 'guides' Rake task to ignore Vim swap files during the HT…

…ML generation, removed active_record_basics.txt from the ignore list and generated initial HTML of it with previous contents.
  • Loading branch information...
1 parent 986a7c6 commit 72d2a64f63b2325e46318d2d9096954c6f391861 @cassiomarques cassiomarques committed Jan 18, 2009
View
@@ -285,7 +285,7 @@ task :guides do
asciidoc_conf = 'doc/guides/asciidoc.conf'
ignore = ['..', 'icons', 'images', 'templates', 'stylesheets']
- ignore << 'active_record_basics.txt'
+ #ignore << 'active_record_basics.txt'
indexless = ['index.txt', 'authors.txt']
@@ -301,7 +301,7 @@ task :guides do
end
entries.each do |entry|
- next if ignore.include?(entry)
+ next if ignore.include?(entry) or entry =~ /^\./ # because Vim is always saving hidden swap files
if File.directory?(File.join(source, entry))
# If the current entry is a directory, then we will want to compile
Oops, something went wrong.

0 comments on commit 72d2a64

Please sign in to comment.