[DRE-commits] r2315 - tools

lucas at alioth.debian.org lucas at alioth.debian.org
Wed Dec 19 09:51:57 UTC 2007


Author: lucas
Date: 2007-12-19 09:51:57 +0000 (Wed, 19 Dec 2007)
New Revision: 2315

Added:
   tools/pts-subscribe.rb
Log:
added script to mass-subscribe to pacakges on the PTS

Added: tools/pts-subscribe.rb
===================================================================
--- tools/pts-subscribe.rb	                        (rev 0)
+++ tools/pts-subscribe.rb	2007-12-19 09:51:57 UTC (rev 2315)
@@ -0,0 +1,24 @@
+#!/usr/bin/ruby -w
+#
+# usage:
+# tools/pts-subscribe.rb | mutt -H -
+# needs to be run when new packages are added
+require 'find'
+
+if not Dir::entries('.').include?('packages')
+  puts "Please run that script in the root of the pkg-ruby-extras repository (the directory where the packages and packages-wip directories reside)"
+  exit 1
+end
+
+print "To: pts at qa.debian.org\n\n"
+
+Find.find('.') do |path|
+  Find::prune if ['tags', 'branches', 'build-area', 'tarballs'].include?(File::basename(path))
+  Find::prune if path == './packages-wip' # no need to subscribe to wip stuff
+  if FileTest::file?(path) and File::basename(path) == 'control'
+    if IO::read(path) =~ /^Source: (.*)$/
+      puts "subscribe #{$1} pkg-ruby-extras-maintainers at lists.alioth.debian.org"
+    end
+  end
+end
+puts "thanks"


Property changes on: tools/pts-subscribe.rb
___________________________________________________________________
Name: svn:executable
   + *




More information about the Pkg-ruby-extras-commits mailing list