Updated install rake task (now properly copies directory contents) Thanks @pw for the pull request fixes #32
This commit is contained in:
parent
acd1ba34d3
commit
9e6a951826
12
Rakefile
12
Rakefile
@ -26,10 +26,14 @@ task :install, :theme do |t, args|
|
|||||||
# copy theme into working Jekyll directories
|
# copy theme into working Jekyll directories
|
||||||
theme = args.theme || 'classic'
|
theme = args.theme || 'classic'
|
||||||
puts "## Copying "+theme+" theme into ./#{source_dir} ./sass and ./plugins "
|
puts "## Copying "+theme+" theme into ./#{source_dir} ./sass and ./plugins "
|
||||||
system "mkdir -p #{source_dir}; cp -R #{themes_dir}/"+theme+"/source/ #{source_dir}/"
|
mkdir_p source_dir
|
||||||
system "mkdir -p sass; cp -R #{themes_dir}/"+theme+"/sass/ sass/"
|
cp_r "#{themes_dir}/#{theme}/source/.", source_dir
|
||||||
system "mkdir -p plugins; cp -R #{themes_dir}/"+theme+"/plugins/ plugins/"
|
mkdir_p "sass"
|
||||||
system "mkdir -p #{source_dir}/#{posts_dir}";
|
cp_r "#{themes_dir}/#{theme}/sass/.", "sass"
|
||||||
|
mkdir_p "plugins"
|
||||||
|
cp_r "#{themes_dir}/#{theme}/plugins/.", "plugins"
|
||||||
|
mkdir_p "#{source_dir}/#{posts_dir}"
|
||||||
|
mkdir_p public_dir
|
||||||
end
|
end
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
|
Loading…
Reference in New Issue
Block a user