diff options
author | Brandon Mathis <brandon@imathis.com> | 2011-10-01 23:36:52 -0500 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2011-10-01 23:36:52 -0500 |
commit | 09057190d974d071750e28ac9b329a1549fbbef2 (patch) | |
tree | 47fe753238a1cf85152f652b333e3d82cf955c00 | |
parent | d833d9fe7809468431f2044ac84b9fa85ff2472d (diff) | |
download | my_new_personal_website-09057190d974d071750e28ac9b329a1549fbbef2.tar.xz my_new_personal_website-09057190d974d071750e28ac9b329a1549fbbef2.zip |
fixed issue where update_source failed if source/index was any extension other than .html
-rw-r--r-- | Rakefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -184,13 +184,14 @@ task :update_source, :theme do |t, args| puts "## Removed existing #{source_dir}.old directory" rm_r "#{source_dir}.old", :secure=>true end + mkdir "#{source_dir}.old" cp_r "#{source_dir}/.", "#{source_dir}.old" puts "## Copied #{source_dir} into #{source_dir}.old/" cp_r "#{themes_dir}/"+theme+"/source/.", source_dir, :remove_destination=>true cp_r "#{source_dir}.old/_includes/custom/.", "#{source_dir}/_includes/custom/", :remove_destination=>true cp "#{source_dir}.old/favicon.png", source_dir mv "#{source_dir}/index.html", "#{blog_index_dir}", :force=>true if blog_index_dir != source_dir - cp "#{source_dir}.old/index.html", source_dir if blog_index_dir != source_dir + cp "#{source_dir}.old/index.html", source_dir if blog_index_dir != source_dir && File.exists?("#{source_dir}.old/index.html") puts "## Updated #{source_dir} ##" end |