File xmlbeans-2.1.0-scripts.patch of Package xmlbeans

--- bin/dumpxsb.orig	2006-01-30 16:15:16.000000000 +0100
+++ bin/dumpxsb	2006-01-30 16:20:16.000000000 +0100
@@ -20,9 +20,9 @@
 
 echo `dirname $0`
 
-if [ -z $XMLBEANS_LIB ]; then . `dirname $0`/_setlib; fi
+if [ -z $XMLBEANS_LIB ]; then XMLBEANS_LIB=/usr/share/java; fi
 
-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar
+cp=$XMLBEANS_LIB/xmlbeans/xbean.jar:$XMLBEANS_LIB/bea-stax-api.jar
 
 case "`uname`" in
     CYGWIN*)
--- bin/inst2xsd.orig	2006-01-30 16:15:29.000000000 +0100
+++ bin/inst2xsd	2006-01-30 16:21:43.000000000 +0100
@@ -18,9 +18,9 @@
 #Instance to Schema tool
 #Builds xsd files from xml instance files.
 
-if [ -z $XMLBEANS_LIB ]; then . `dirname $0`/_setlib; fi
+if [ -z $XMLBEANS_LIB ]; then XMLBEANS_LIB=/usr/share/java; fi
 
-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar
+cp=$XMLBEANS_LIB/xmlbeans/xbean.jar:$XMLBEANS_LIB/bea-stax-api.jar
 
 case "`uname`" in
     CYGWIN*)
--- bin/scomp.orig	2006-01-30 16:15:42.000000000 +0100
+++ bin/scomp	2006-01-30 16:23:02.000000000 +0100
@@ -18,9 +18,9 @@
 #Schema compiler
 #Builds XBean types from xsd files.
 
-if [ -z $XMLBEANS_LIB ]; then . `dirname $0`/_setlib; fi
+if [ -z $XMLBEANS_LIB ]; then XMLBEANS_LIB=/usr/share/java; fi
 
-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar:$JAVA_HOME/lib/tools.jar:$XMLBEANS_LIB/resolver.jar
+cp=$XMLBEANS_LIB/xmlbeans/xbean.jar:$XMLBEANS_LIB/bea-stax-api.jar:$JAVA_HOME/lib/tools.jar:$XMLBEANS_LIB/xml-commons-resolver.jar
 
 case "`uname`" in
     CYGWIN*)
@@ -28,4 +28,4 @@
         ;;
 esac
 
-java -Xmx256m -classpath $cp org.apache.xmlbeans.impl.tool.SchemaCompiler $*
+$JAVA_HOME/bin/java -Xmx256m -classpath $cp org.apache.xmlbeans.impl.tool.SchemaCompiler $*
--- bin/sdownload.orig	2006-01-30 16:16:07.000000000 +0100
+++ bin/sdownload	2006-01-30 16:23:43.000000000 +0100
@@ -18,9 +18,9 @@
 #Schema downloader
 #Tool to download Schema files
 
-if [ -z $XMLBEANS_LIB ]; then . `dirname $0`/_setlib; fi
+if [ -z $XMLBEANS_LIB ]; then XMLBEANS_LIB=/usr/share/java; fi
 
-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar
+cp=$XMLBEANS_LIB/xmlbeans/xbean.jar:$XMLBEANS_LIB/bea-stax-api.jar
 
 case "`uname`" in
     CYGWIN*)
--- bin/sfactor.orig	2006-01-30 16:16:26.000000000 +0100
+++ bin/sfactor	2006-01-30 16:24:25.000000000 +0100
@@ -20,9 +20,9 @@
 ## Factors redundant definitions out of a set of schemas and 
 ## uses imports instead.
 
-if [ -z $XMLBEANS_LIB ]; then . `dirname $0`/_setlib; fi
+if [ -z $XMLBEANS_LIB ]; then XMLBEANS_LIB=/usr/share/java; fi
 
-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar:$XMLBEANS_LIB/resolver.jar
+cp=$XMLBEANS_LIB/xmlbeans/xbean.jar:$XMLBEANS_LIB/bea-stax-api.jar:$XMLBEANS_LIB/xml-commons-resolver.jar
 
 case "`uname`" in
     CYGWIN*)
--- bin/svalidate.orig	2006-01-30 16:16:38.000000000 +0100
+++ bin/svalidate	2006-01-30 16:25:43.000000000 +0100
@@ -19,9 +19,9 @@
 #
 # Validates an instance against a schema.
 
-if [ -z $XMLBEANS_LIB ]; then . `dirname $0`/_setlib; fi
+if [ -z $XMLBEANS_LIB ]; then XMLBEANS_LIB=/usr/share/java; fi
 
-CP=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar:$XMLBEANS_LIB/jsr173_1.0_ri.jar
+CP=$XMLBEANS_LIB/xmlbeans/xbean.jar:$XMLBEANS_LIB/bea-stax-api.jar:$XMLBEANS_LIB/bea-stax-ri.jar
 
 case "`uname`" in
     CYGWIN*)
--- bin/validate.orig	2006-01-30 16:16:57.000000000 +0100
+++ bin/validate	2006-01-30 16:26:39.000000000 +0100
@@ -19,9 +19,9 @@
 #
 # Validates an instance against a schema.
 
-if [ -z $XMLBEANS_LIB ]; then . `dirname $0`/_setlib; fi
+if [ -z $XMLBEANS_LIB ]; then XMLBEANS_LIB=/usr/share/java; fi
 
-CP=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar
+CP=$XMLBEANS_LIB/xmlbeans/xbean.jar:$XMLBEANS_LIB/bea-stax-api.jar
 
 case "`uname`" in
     CYGWIN*)
--- bin/xpretty.orig	2006-01-30 16:17:13.000000000 +0100
+++ bin/xpretty	2006-01-30 16:27:11.000000000 +0100
@@ -17,9 +17,9 @@
 
 #Invokes pretty printer
 
-if [ -z $XMLBEANS_LIB ]; then . `dirname $0`/_setlib; fi
+if [ -z $XMLBEANS_LIB ]; then XMLBEANS_LIB=/usr/share/java; fi
 
-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar
+cp=$XMLBEANS_LIB/xmlbeans/xbean.jar:$XMLBEANS_LIB/bea-stax-api.jar
 
 case "`uname`" in
     CYGWIN*)
--- bin/xsd2inst.orig	2006-01-30 16:17:29.000000000 +0100
+++ bin/xsd2inst	2006-01-30 16:27:46.000000000 +0100
@@ -17,9 +17,9 @@
 
 #Schema to instance tool
 
-if [ -z $XMLBEANS_LIB ]; then . `dirname $0`/_setlib; fi
+if [ -z $XMLBEANS_LIB ]; then XMLBEANS_LIB=/usr/share/java; fi
 
-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar
+cp=$XMLBEANS_LIB/xmlbeans/xbean.jar:$XMLBEANS_LIB/bea-stax-api.jar
 
 case "`uname`" in
     CYGWIN*)
--- bin/xsdtree.orig	2006-01-30 16:17:44.000000000 +0100
+++ bin/xsdtree	2006-01-30 16:28:23.000000000 +0100
@@ -17,9 +17,9 @@
 
 # Invokes type hierarchy printer
 
-if [ -z $XMLBEANS_LIB ]; then . `dirname $0`/_setlib; fi
+if [ -z $XMLBEANS_LIB ]; then XMLBEANS_LIB=/usr/share/java; fi
 
-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar
+cp=$XMLBEANS_LIB/xmlbeans/xbean.jar:$XMLBEANS_LIB/bea-stax-api.jar
 
 case "`uname`" in
     CYGWIN*)
--- bin/xstc.orig	2006-01-30 16:17:58.000000000 +0100
+++ bin/xstc	2006-01-30 16:29:12.000000000 +0100
@@ -17,9 +17,9 @@
 
 # Invokes XSTC
 
-if [ -z $XMLBEANS_LIB ]; then . `dirname $0`/_setlib; fi
+if [ -z $XMLBEANS_LIB ]; then XMLBEANS_LIB=/usr/share/java; fi
 
-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar:$XMLBEANS_LIB/resolver.jar
+cp=$XMLBEANS_LIB/xmlbeans/xbean.jar:$XMLBEANS_LIB/bea-stax-api.jar:$XMLBEANS_LIB/xml-commons-resolver.jar
 
 case "`uname`" in
     CYGWIN*)