summaryrefslogtreecommitdiffstats
path: root/svnmergedocs.py
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-16 09:06:37 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-16 09:06:37 +0000
commit39d98386f72c65826e162e3e8fd36752ec469252 (patch)
tree5cec746207c4c892d064beafca1de94568a3aeb9 /svnmergedocs.py
downloadpytde-39d98386f72c65826e162e3e8fd36752ec469252.tar.gz
pytde-39d98386f72c65826e162e3e8fd36752ec469252.zip
Move python-kde3 to the more correct python-trinity
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/libraries/python-trinity@1247483 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'svnmergedocs.py')
-rw-r--r--svnmergedocs.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/svnmergedocs.py b/svnmergedocs.py
new file mode 100644
index 0000000..e77a908
--- /dev/null
+++ b/svnmergedocs.py
@@ -0,0 +1,30 @@
+import os, os.path
+
+svnbase = "/home/jim/PyKDE/doc/classref"
+newbase = "/home/jim/PyKDE352/doc/classref"
+
+newfiles = os.listdir (newbase)
+
+for file in newfiles:
+ if os.path.isdir (file):
+ newpath = os.path.join (newbase, file)
+ svnpath = os.path.join (svnbase, file)
+ if os.path.exists (svnpath):
+ newdoc = os.listdir (newpath)
+ svndoc = os.listdir (svnpath)
+ for doc in newdoc:
+ os.system ("cp %s %s" % (os.path.join (newpath, doc), svnpath))
+ if doc not in svndoc:
+ os.system ("svn add %s" % (os.path.join (svnpath, doc)))
+ print "added %s" % doc
+ else:
+ os.system ("cp -R %s %s" % (newpath, svnpath))
+ os.system ("svn add %s" % svnpath)
+ else:
+ if os.path.exists (os.path.join (svnbase, file)):
+ os.system ("cp %s %s" % (os.path.join (newbase, file), svnbase))
+ else:
+ os.system ("cp %s %s" % (os.path.join (newbase, file), svnbase))
+ os.system ("svn add %s" % (os.path.join (svnbase, file)))
+
+ \ No newline at end of file