[Secure-testing-commits] r13540 - bin
Michael Gilbert
gilbert-guest at alioth.debian.org
Sun Dec 13 15:37:41 UTC 2009
Author: gilbert-guest
Date: 2009-12-13 15:37:41 +0000 (Sun, 13 Dec 2009)
New Revision: 13540
Added:
bin/generate-sequential-bugs
bin/generate-sequential-cve-ids
Log:
a couple simple, possibly useful scripts
Added: bin/generate-sequential-bugs
===================================================================
--- bin/generate-sequential-bugs (rev 0)
+++ bin/generate-sequential-bugs 2009-12-13 15:37:41 UTC (rev 13540)
@@ -0,0 +1,30 @@
+#!/usr/bin/python
+#
+# generate a sequential list of bug email addresses
+#
+# Copyright (C) 2009 Michael S Gilbert
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+import sys
+
+if ( len( sys.argv ) != 3 ):
+ sys.stderr.write( 'usage: %s <start bug #> <end bug #>\n' % sys.argv[0] )
+ sys.exit( 1 )
+
+start = int( sys.argv[1] )
+end = int( sys.argv[2] )
+
+for n in range( start , end ):
+ sys.stdout.write( '%i at bugs.debian.org, ' % n )
+sys.stdout.write( '%i at bugs.debian.org\n' % end )
Property changes on: bin/generate-sequential-bugs
___________________________________________________________________
Added: svn:executable
+ *
Added: bin/generate-sequential-cve-ids
===================================================================
--- bin/generate-sequential-cve-ids (rev 0)
+++ bin/generate-sequential-cve-ids 2009-12-13 15:37:41 UTC (rev 13540)
@@ -0,0 +1,31 @@
+#!/usr/bin/python
+#
+# generate a sequential list of CVE numbers
+#
+# Copyright (C) 2009 Michael S Gilbert
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+import sys
+
+if ( len( sys.argv ) != 3 ):
+ sys.stderr.write( 'usage: %s CVE-<year>-<start #> CVE-<year>-<end #>\n' % sys.argv[0] )
+ sys.exit( 1 )
+
+root = sys.argv[1][0:9]
+start = int( sys.argv[1].split( '-' )[2] )
+end = int( sys.argv[2].split( '-' )[2] )
+
+for n in range( start , end ):
+ sys.stdout.write( '%s%i ' % ( root , n ) )
+sys.stdout.write( '%s%i\n' % ( root , end ) )
Property changes on: bin/generate-sequential-cve-ids
___________________________________________________________________
Added: svn:executable
+ *
More information about the Secure-testing-commits
mailing list