about summary refs log tree commit homepage
path: root/Rakefile
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-09-22 23:43:48 +0000
committerEric Wong <normalperson@yhbt.net>2013-09-22 23:43:48 +0000
commit0ba71fbb030dff8b66392dcc48f536968bfb89b5 (patch)
tree0fb1c5384bafe33236cc09703774d664cf2b2562 /Rakefile
parent6f1dca4fada3359bec97f58d26f1403c78c6a20f (diff)
downloaddtas-0ba71fbb030dff8b66392dcc48f536968bfb89b5.tar.gz
This makes it easier to reference in mailing list posts and docs.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile5
1 files changed, 4 insertions, 1 deletions
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