summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorBen Bleything <ben@bleything.net>2006-08-20 18:14:43 +0000
committerBen Bleything <ben@bleything.net>2006-08-20 18:14:43 +0000
commit146efd1ac86ee6052762d6c4e075936b0295e423 (patch)
tree9101767f366ee27b18e49de23a4d6d9fb45cb7a9 /Rakefile
parent9199ab62a2430e823377cf97cb4eab97e4ba76b9 (diff)
downloadplist-146efd1ac86ee6052762d6c4e075936b0295e423.tar.gz
fix whitespace task to next over directories
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 04d111c..0eb8541 100644
--- a/Rakefile
+++ b/Rakefile
@@ -49,6 +49,8 @@ end
desc "Strip trailing whitespace and fix newlines for all release files"
task :fix_whitespace => [ :clean ] do
RELEASE_FILES.each do |filename|
+ next if File.directory? filename
+
File.open(filename) do |file|
newfile = ''
needs_love = false