fix rakefile

This commit is contained in:
Thomas Reynolds 2011-02-18 16:29:55 -08:00
parent 48d2956a57
commit 1a15147f67

View file

@ -24,8 +24,8 @@ directory 'docs/'
# Make index.html a copy of rocco.html # Make index.html a copy of rocco.html
file 'docs/index.html' => 'docs/lib/middleman.html' do |f| file 'docs/index.html' => 'docs/middleman.html' do |f|
cp 'docs/lib/middleman.html', 'docs/index.html', :preserve => true cp 'docs/middleman.html', 'docs/index.html', :preserve => true
end end
task :docs => 'docs/index.html' task :docs => 'docs/index.html'
CLEAN.include 'docs/index.html' CLEAN.include 'docs/index.html'
@ -49,4 +49,4 @@ file 'docs/.git' => ['docs/', '.git/refs/heads/gh-pages'] do |f|
sh "cd docs && git init -q && git remote add o ../.git" if !File.exist?(f.name) sh "cd docs && git init -q && git remote add o ../.git" if !File.exist?(f.name)
sh "cd docs && git fetch -q o && git reset -q --hard o/gh-pages && touch ." sh "cd docs && git fetch -q o && git reset -q --hard o/gh-pages && touch ."
end end
CLOBBER.include 'docs/.git' CLOBBER.include 'docs/.git'