From d2919806bf3979c72692021a4e491b1e4f174ac7 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 27 Aug 2013 21:48:57 +0000 Subject: Rakefile: use git set-file-times for consistent mtimes Preserving mtimes will cut down on unnecessary rsync and HTTP traffic, saving bandwidth and making the Internet a better place :> --- Rakefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Rakefile b/Rakefile index a73add6..27d7960 100644 --- a/Rakefile +++ b/Rakefile @@ -62,6 +62,11 @@ task :rsync_docs do dest = ENV["RSYNC_DEST"] || "80x24.org:/srv/dtas/" top = %w(INSTALL NEWS README COPYING) files = [] + + # git-set-file-times is distributed with rsync, + # on Debian systems: /usr/share/doc/rsync/scripts/git-set-file-times.gz + sh("git", "set-file-times", "Documentation") + Dir['Documentation/*.txt'].to_a.concat(top).each do |txt| gz = "#{txt}.gz" tmp = "#{gz}.#$$" -- cgit v1.2.3-24-ge0c7