From 3798e298a412c4bc05b5aa83507b3c251dd36233 Mon Sep 17 00:00:00 2001
From: Robin Dunn <robin@alldunn.com>
Date: Tue, 23 Dec 2003 19:56:51 +0000
Subject: [PATCH] Updated tools

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24983 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 wxPython/distrib/build_renamers.py | 4 ++--
 wxPython/distrib/makepreview.bat   | 8 +++++++-
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/wxPython/distrib/build_renamers.py b/wxPython/distrib/build_renamers.py
index 022051b8dc..e5f16ed19c 100755
--- a/wxPython/distrib/build_renamers.py
+++ b/wxPython/distrib/build_renamers.py
@@ -134,7 +134,7 @@ def main(args):
 
 def GetAttr(node, name):
     path = "./attributelist/attribute[@name='%s']/@value" % name
-    n = node.xpathEval(path)
+    n = node.xpathEval2(path)
     if len(n):
         return n[0].content
     else:
@@ -148,7 +148,7 @@ def processXML(xmlfile, modname, swigFile, pyFile):
     topnode = libxml2.parseFile(xmlfile).children
 
     # remove any import nodes as we don't need to do renamers for symbols found therein
-    imports = topnode.xpathEval("*/import")
+    imports = topnode.xpathEval2("*/import")
     for n in imports:
         n.unlinkNode()
         n.freeNode()
diff --git a/wxPython/distrib/makepreview.bat b/wxPython/distrib/makepreview.bat
index 4df8965ede..60d7a02693 100755
--- a/wxPython/distrib/makepreview.bat
+++ b/wxPython/distrib/makepreview.bat
@@ -10,14 +10,20 @@ mkdir %BASE%\wx
 mkdir %BASE%\wxPython
 mkdir %BASE%\demo
 mkdir %BASE%\scripts
+mkdir %BASE%\docs
+mkdir %BASE%\docs\xml
+
 
 rem *** copy files
 copy /s wx %BASE%\wx
 copy /s wxPython %BASE%\wxPython
 copy /s demo %BASE%\demo
 copy /s scripts %BASE%\scripts
-copy ..\BIN\*h_*.dll %BASE%\wx
 
+copy ..\BIN\*h_*.dll %BASE%\wx
+copy docs\MigrationGuide.* %BASE%\docs
+copy docs\CHANGES.txt %BASE%\docs
+copy docs\xml\wxPython-metadata.xml %BASE%\docs\xml
 
 
 
-- 
2.47.2