diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 90825e2392b2d70e43c7a25b8a3752299a933894 (patch) | |
tree | e33aa27f02b74604afbfd0ea4f1cfca8833d882a /python/pykde/svnmergedocs.py | |
download | tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.tar.gz tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'python/pykde/svnmergedocs.py')
-rw-r--r-- | python/pykde/svnmergedocs.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/python/pykde/svnmergedocs.py b/python/pykde/svnmergedocs.py new file mode 100644 index 00000000..e77a908d --- /dev/null +++ b/python/pykde/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 |