From 16054dd85ac65c4a980c08fd53217ab12e5f4907 Mon Sep 17 00:00:00 2001
From: Boris Kolpackov <borisk@apache.org>
Date: Fri, 14 Mar 2008 14:55:42 +0000
Subject: [PATCH] Move the documentation creation scripts to tools

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@637124 13f79535-47bb-0310-9956-ffa450edef68
---
 createDocs.sh        | 3 ---
 createdocs.bat       | 1 -
 doc/build-misc.xml   | 8 ++++----
 doc/faq-build.xml    | 4 ++--
 tools/createdocs.bat | 1 +
 tools/createdocs.sh  | 2 ++
 6 files changed, 9 insertions(+), 10 deletions(-)
 delete mode 100755 createDocs.sh
 delete mode 100644 createdocs.bat
 create mode 100644 tools/createdocs.bat
 create mode 100755 tools/createdocs.sh

diff --git a/createDocs.sh b/createDocs.sh
deleted file mode 100755
index 24b310f47..000000000
--- a/createDocs.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-java -Djava.awt.headless=true -classpath "tools/jars/stylebook-1.0-b2.jar:tools/jars/xalan.jar:tools/jars/xerces.jar" org.apache.stylebook.StyleBook "targetDirectory=doc/html" doc/xerces-c_book.xml doc/style
diff --git a/createdocs.bat b/createdocs.bat
deleted file mode 100644
index 480feb6e0..000000000
--- a/createdocs.bat
+++ /dev/null
@@ -1 +0,0 @@
-java -classpath "tools/jars/stylebook-1.0-b2.jar;tools/jars/xalan.jar;tools/jars/xerces.jar" org.apache.stylebook.StyleBook "targetDirectory=doc/html" doc/xerces-c_book.xml doc/style
diff --git a/doc/build-misc.xml b/doc/build-misc.xml
index a2e4db420..acf0398a1 100644
--- a/doc/build-misc.xml
+++ b/doc/build-misc.xml
@@ -180,12 +180,12 @@ rpmbuild -ta &XercesC3SrcInstallDir;.tar.gz (rpm 4.1 and later; ships with RedHa
         <p>Before proceeding, copy the contents of the &XercesC3ToolsInstallDir;
            distribution into your <code>$XERCESCROOT</code>. Then invoke
            a terminal or a command window and setup PATH to include the
-           JDK 1.2.2 bin directory. Next, cd to the <code>$XERCESCROOT</code>
-           source root directory, and enter:</p>
+           JDK 1.2.2 bin directory. Next, cd to the <code>$XERCESCROOT/tools</code>
+           directory, and enter:</p>
 
 <source>
-createDocs.bat (Windows)
-./createDocs.sh (UNIX)
+createdocs.bat (Windows)
+./createdocs.sh (UNIX)
 </source>
 
         <p>This should generate the .html files in the 'doc/html' directory.</p>
diff --git a/doc/faq-build.xml b/doc/faq-build.xml
index 16e76a02d..58d08697d 100644
--- a/doc/faq-build.xml
+++ b/doc/faq-build.xml
@@ -395,8 +395,8 @@ catch (const XMLException&amp; toCatch) {
         should copy its contents into your <code>&XercesC3SrcInstallDir;</code>
         directory.</p>
 
-     <p>To regenerate the documentation, go to &XercesC3SrcInstallDir;
-        and start <code>createDocs.sh</code> (for Unix) or
+     <p>To regenerate the documentation, go to the &XercesC3SrcInstallDir;/tools
+        directory and start <code>createdocs.sh</code> (for Unix) or
         <code>createdocs.bat</code> (for Windows). The result can be
         found in directory <code>&XercesC3SrcInstallDir;/doc/html</code>.</p>
 
diff --git a/tools/createdocs.bat b/tools/createdocs.bat
new file mode 100644
index 000000000..23bc9897b
--- /dev/null
+++ b/tools/createdocs.bat
@@ -0,0 +1 @@
+java -classpath "jars/stylebook-1.0-b2.jar;jars/xalan.jar;jars/xerces.jar" org.apache.stylebook.StyleBook "targetDirectory=../doc/html" ../doc/xerces-c_book.xml ../doc/style
diff --git a/tools/createdocs.sh b/tools/createdocs.sh
new file mode 100755
index 000000000..0acae20ed
--- /dev/null
+++ b/tools/createdocs.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+java -Djava.awt.headless=true -classpath "jars/stylebook-1.0-b2.jar:jars/xalan.jar:jars/xerces.jar" org.apache.stylebook.StyleBook "targetDirectory=../doc/html" ../doc/xerces-c_book.xml ../doc/style
-- 
GitLab