From 0ba71fbb030dff8b66392dcc48f536968bfb89b5 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 22 Sep 2013 23:43:48 +0000 Subject: Rakefile: add examples to website, too This makes it easier to reference in mailing list posts and docs. --- Rakefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 918153b..225e7c0 100644 --- a/Rakefile +++ b/Rakefile @@ -73,7 +73,7 @@ task :rsync_docs do # git-set-file-times is distributed with rsync, # Also available at: http://yhbt.net/git-set-file-times # on Debian systems: /usr/share/doc/rsync/scripts/git-set-file-times.gz - sh("git", "set-file-times", "Documentation") + sh("git", "set-file-times", "Documentation", "examples") Dir['Documentation/*.txt'].to_a.concat(top).each do |txt| gz = "#{txt}.gz" @@ -86,6 +86,9 @@ task :rsync_docs do files << gz end sh("rsync --chmod=Fugo=r -av #{files.join(' ')} #{dest}") + + examples = `git ls-files examples`.split("\n") + sh("rsync --chmod=Fugo=r -av #{examples.join(' ')} #{dest}/examples/") end task :coverage do -- cgit v1.2.3-24-ge0c7