Author: daniel
Date: 2003-06-19 05:58:30 -0500 (Thu, 19 Jun 2003)
New Revision: 215

Added:
   people/daniel/patches-cvs/
   people/daniel/patches-cvs/getpatches.list
   people/daniel/patches-cvs/getpatches.py
Log:
Adding patches-cvs to people/daniel per #214.


Added: people/daniel/patches-cvs/getpatches.list
==============================================================================
--- people/daniel/patches-cvs/getpatches.list   2003-06-19 10:57:07 UTC (rev 214)
+++ people/daniel/patches-cvs/getpatches.list   2003-06-19 10:58:30 UTC (rev 215)
@@ -0,0 +1,6 @@
+000_stolen_from_HEAD_nv_driver:
+  1.18          +13 -9     xc/programs/Xserver/hw/xfree86/drivers/nv/nv.man
+  1.104         +2 -1      xc/programs/Xserver/hw/xfree86/drivers/nv/nv_driver.c
+  1.28          +13 -5     xc/programs/Xserver/hw/xfree86/drivers/nv/nv_setup.c
+  1.48          +1 -6      xc/programs/Xserver/hw/xfree86/drivers/nv/riva_hw.c
+  1.12          +24 -12    xc/programs/Xserver/hw/xfree86/drivers/nv/nv_video.c

Added: people/daniel/patches-cvs/getpatches.py
==============================================================================
--- people/daniel/patches-cvs/getpatches.py     2003-06-19 10:57:07 UTC (rev 214)
+++ people/daniel/patches-cvs/getpatches.py     2003-06-19 10:58:30 UTC (rev 215)
@@ -0,0 +1,41 @@
+#!/usr/bin/python2.2
+
+import os
+
+patches = open("getpatches.list")
+patch = patches.readline().rstrip() 
+
+while 1:
+       if patch == "":
+               # delimiter
+               pass
+       elif not patch[0] == " " and not patch [1] == " ":
+               # new field
+               fieldname = patch[0:-1]
+               print "\nSwitching into field %s" % fieldname
+               os.system("echo > cvs/%s.diff" % fieldname)
+       else:
+               i = 2
+               j = 0
+               revision = plus = minus = ""
+               while not patch[i] == " ":
+                       revision += patch[i]
+                       i += 1
+               while patch[i] == " ":
+                       i += 1
+               while not patch[i] == " ":
+                       # +foo
+                       plus += patch[i]
+                       i += 1
+               while patch[i] == " ":
+                       i += 1
+               while not patch[i] == " ":
+                       # -foo
+                       minus += patch[i]
+                       i += 1
+               while patch[i] == " ":
+                       i += 1
+               filename = patch[(i+3):]
+               print "Revision %s of file %s wanted (%s %s)." % (revision, filename, 
plus, minus)
+               os.system("cd ../../build-tree/xc && cvs diff -u -p -r %s %s >> 
../../debian/patches-cvs/cvs/%s.diff" % (revision, filename, fieldname)) 
+       patch = patches.readline().rstrip()


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to