summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
Diffstat (limited to 'tool')
-rwxr-xr-xtool/sync_test_lib.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/tool/sync_test_lib.rb b/tool/sync_test_lib.rb
index 904fa42d02..23ca4a1154 100755
--- a/tool/sync_test_lib.rb
+++ b/tool/sync_test_lib.rb
@@ -76,6 +76,12 @@ repos.each do |repo|
system "git add #{file}"
end
+ rf = File.binread("Rakefile")
+ if rf.sub!(/(?>\A|(\n)\n*)task +:sync_tool +do\n(?>(?> .*)?\n)*end\n(?=\z|(\n))/) {$1&&$2}
+ File.binwrite("Rakefile", rf)
+ system "git add Rakefile"
+ end
+
if IO.popen(%W"git commit -m #{title}\n\n#{message}", &:read).chomp =~ /nothing to commit/
puts "#{repo}: nothing to update"
elsif update