Skip to content

Commit

Permalink
Fix rsync timestamp option so files are recompiled.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Ford committed Dec 17, 2008
1 parent 362a702 commit 947c921
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rakelib/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ def spec_ruby
"./spec/ruby"
end

Rsync_options = "-avP --delete --exclude '*svn*' --exclude '*swp' --exclude '*rbc' --exclude '*.rej' --exclude '*.orig' --exclude 'tags'"
# Don't use -a (--archive) as it includes -t, --times which can
# cause .rbc files to not be regenerated when they should.
Rsync_options = "-rlpgoDvP --delete --exclude '*svn*' --exclude '*swp' " \
"--exclude '*rbc' --exclude '*.rej' --exclude '*.orig' --exclude 'tags'"

def rsync(left, right)
sh "rsync #{Rsync_options} #{left} #{right}"
Expand Down

0 comments on commit 947c921

Please sign in to comment.