diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-06-07 20:03:43 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-06-07 20:03:43 +0000 |
commit | 3758bdb08913baab3d5cbeba7b2329f71834e446 (patch) | |
tree | 2d2a8844f2e412b6bb9f13d45a806d7c8a9e0648 /documentation | |
parent | 1a93e6d6d8c253da985262f7adfeb533570ec17f (diff) | |
download | puppet-3758bdb08913baab3d5cbeba7b2329f71834e446.tar.gz puppet-3758bdb08913baab3d5cbeba7b2329f71834e446.tar.xz puppet-3758bdb08913baab3d5cbeba7b2329f71834e446.zip |
adding rakefile for the docs
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1238 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/Rakefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/documentation/Rakefile b/documentation/Rakefile new file mode 100644 index 000000000..117c3052f --- /dev/null +++ b/documentation/Rakefile @@ -0,0 +1,26 @@ +htmlfiles = [] + +CLEAN = [] + +FileList['*.rst'].each do |src| + name = src.sub(".rst", ".html") + htmlfiles << name + CLEAN << name + file name => src do + sh %{rst2html #{src} > #{name}} + end +end + +task :clean do + CLEAN.each do |file| + if FileTest.directory?(file) + sh %{rm -rf #{file}} + elsif FileTest.exists?(file) + File.unlink(file) + end + end +end + +task :html => htmlfiles + +task :default => :html |