aboutsummaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2011-06-11 15:58:53 -0400
committerBrandon Mathis <brandon@imathis.com>2011-06-11 15:58:53 -0400
commit913fa105c4a6793e6522ca45b85d8f06c803c6b9 (patch)
tree8047baaf313f6a0966b03c8a26a8988cdfa3c172 /Rakefile
parent814be44c151088dfb90d6a01281c9206151b0a88 (diff)
downloadmy_new_personal_website-913fa105c4a6793e6522ca45b85d8f06c803c6b9.tar.xz
my_new_personal_website-913fa105c4a6793e6522ca45b85d8f06c803c6b9.zip
1. Moved _plugins into themes/classic/_plugins
I think it's probably better to ship plugins with themes to make it easier to update them. 2. Improved 'install' rake task and made nicer output
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Rakefile b/Rakefile
index 33e115c3..7158ebb1 100644
--- a/Rakefile
+++ b/Rakefile
@@ -25,9 +25,13 @@ task :install, :theme do |t, args|
# copy theme into working Jekyll directories
theme = args.theme || 'classic'
puts "## Copying "+theme+" theme to Jekyll paths"
- system "cp -R themes/"+theme+"/source source"
- system "cp -R themes/"+theme+"/sass sass"
- # system "cp -R themes/"+theme+"/_plugins/ _plugins/"
+ system "mkdir -p #{source}; cp -R themes/"+theme+"/source/ #{source}/"
+ system "mkdir -p sass; cp -R themes/"+theme+"/sass/ sass/"
+ system "mkdir -p _plugins; cp -R themes/"+theme+"/_plugins/ _plugins/"
+ system "mkdir -p #{source}/_posts";
+ puts "## Layouts, images, and javascritps from the #{theme} theme have been installed into ./#{source}"
+ puts "## Sass stylesheet sources from the #{theme} theme have been installed into ./sass"
+ puts "## Plugins from the #{theme} theme have been installed into ./_plugins"
end
#######################