dtas-all
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 6/6] Rakefile: add examples to website, too


From: Eric Wong
Subject: [PATCH 6/6] Rakefile: add examples to website, too
Date: Sun, 22 Sep 2013 23:44:28 +0000

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
-- 
1.8.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]