2004-12-10 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Fri, 10 Dec 2004 05:57:11 +0000 (05:57 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Fri, 10 Dec 2004 05:57:11 +0000 (05:57 -0000)
* scripts/Makefile.am, scripts/dtd2xsd : new.
* man/Makefile.am, man/dtd2xsd.1 : new.

svn path=/trunk/mono/; revision=37559

man/Makefile.am
man/dtd2xsd.1 [new file with mode: 0755]
scripts/Makefile.am
scripts/dtd2xsd [new file with mode: 0644]

index 46de49aa31957d46d282a34b17257eaf1d2034b7..851f5b09cf852b93f7557ad64ee140509ba97e45 100644 (file)
@@ -1,6 +1,6 @@
 man_MANS = mcs.1 mono.1 monostyle.1 mono-config.5 sqlsharp.1 oldmono.1 ilasm.1 \
           cert2spc.1 cilc.1 genxs.1 wsdl.1 disco.1 soapsuds.1 makecert.1 \
           chktrust.1 setreg.1 sn.1 secutil.1 signcode.1 certmgr.1 monop.1 xsd.1 gacutil.1 \
-          mkbundle.1
+          mkbundle.1 dtd2xsd.1
 
 EXTRA_DIST = $(man_MANS)
diff --git a/man/dtd2xsd.1 b/man/dtd2xsd.1
new file mode 100755 (executable)
index 0000000..3c08805
--- /dev/null
@@ -0,0 +1,19 @@
+.TH "dtd2xsd" 1
+.SH NAME
+dtd2xsd \- XML Schema generator from XML document that contains DTD.
+.SH SYNOPSIS
+.B dtd2xsd
+[options]
+.I instance-xmlfile
+.I optional-xsdfile
+.SH DESCRIPTION
+dtd2xsd generates an XML schema document from a document type definition (DTD).
+Right now you have to specify instance XML file that references or contains
+DTD. DTD itself is not readable with this tiny tool.
+.PP
+By default, it outputs resulting XML schema to console. If optional-xsdfile
+parameter is specified, it outputs the result to the specified file.
+.SH AUTHOR
+Atsushi Enomoto <atsushi@ximian.com>
+.SH SEE ALSO
+mono(1)
index 3b7e3f423141210aac3600aacef04f9ca3ad0d23..43398c5695089f5adb4864b2b53b856503bfce2e 100644 (file)
@@ -9,6 +9,7 @@ bin_SCRIPTS = \
        chktrust                \
        cilc                    \
        disco                   \
+       dtd2xsd                 \
        gacutil                 \
        genxs                   \
        ilasm                   \
diff --git a/scripts/dtd2xsd b/scripts/dtd2xsd
new file mode 100644 (file)
index 0000000..6670344
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/local/bin/mono C:/cygwin/usr/local/lib/mono/1.0/dtd2xsd.exe "$@"