summaryrefslogtreecommitdiff
path: root/officecfg
diff options
context:
space:
mode:
authortpf <tpf@openoffice.org>2002-10-25 16:26:17 +0000
committertpf <tpf@openoffice.org>2002-10-25 16:26:17 +0000
commit6f9d5d737a3a75e474e80e0ecaeca6353c57efac (patch)
treeac1cb5f71c35367a2dd47f6b31a9f28da952944e /officecfg
parentf872a466670651a5f56bce0ef8bc8621ab864716 (diff)
#102125# xcs and xcu files are validated now
Diffstat (limited to 'officecfg')
-rw-r--r--officecfg/registry/schema/makefile.mk7
-rw-r--r--officecfg/util/makefile.pmk82
2 files changed, 43 insertions, 46 deletions
diff --git a/officecfg/registry/schema/makefile.mk b/officecfg/registry/schema/makefile.mk
index b0b559832c92..8cb9d5a649ce 100644
--- a/officecfg/registry/schema/makefile.mk
+++ b/officecfg/registry/schema/makefile.mk
@@ -2,9 +2,9 @@
#
# $RCSfile: makefile.mk,v $
#
-# $Revision: 1.10 $
+# $Revision: 1.11 $
#
-# last change: $Author: cd $ $Date: 2002-10-11 13:44:30 $
+# last change: $Author: tpf $ $Date: 2002-10-25 17:26:17 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
@@ -70,6 +70,7 @@ TARGET=schema
XCSFILES= \
org$/openoffice$/Inet.xcs \
+ org$/openoffice$/Office$/Addons.xcs \
org$/openoffice$/Office$/Calc.xcs \
org$/openoffice$/Office$/Chart.xcs \
org$/openoffice$/Office$/Commands.xcs \
@@ -91,7 +92,6 @@ XCSFILES= \
org$/openoffice$/Office$/Writer.xcs \
org$/openoffice$/Office$/WriterWeb.xcs \
org$/openoffice$/Office$/Security.xcs \
- org$/openoffice$/Office$/Addons.xcs \
org$/openoffice$/Setup.xcs \
org$/openoffice$/UserProfile.xcs \
org$/openoffice$/VCL.xcs \
@@ -146,4 +146,5 @@ ALLTAR: \
$(OLDTRANSFORM) \
$(COMPARE) \
$(RESOURCES)
+
diff --git a/officecfg/util/makefile.pmk b/officecfg/util/makefile.pmk
index e568d33693a7..2c6ea9e996c6 100644
--- a/officecfg/util/makefile.pmk
+++ b/officecfg/util/makefile.pmk
@@ -2,9 +2,9 @@
#
# $RCSfile: makefile.pmk,v $
#
-# $Revision: 1.20 $
+# $Revision: 1.21 $
#
-# last change: $Author: hjs $ $Date: 2002-09-02 14:33:18 $
+# last change: $Author: tpf $ $Date: 2002-10-25 17:24:41 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
@@ -62,59 +62,65 @@
alliso:=$(foreach,l,$(alllangext) $(iso_$(l)))
-# create old output format
-$(MISC)$/instance$/%.xml : $(MISC)$/xcdformat$/%.xcd
- $(JAVA) -Xmx128m -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/jaxp.jar$(PATH_SEPERATOR)$(CLASSDIR)$/cfgimport.jar org.openoffice.configuration.XMLDefaultGenerator $< $(PRJ)$/util $(MISC) $(PRJ)$/data
-
-# convert to old format xcd format
-$(MISC)$/xcdformat$/%.xcd : %.xcs
- -$(MKDIR) -p $(@:d)
- $(JAVA) -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/cfgimport.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/rschema.xsl $(MISC)$/xcdformat$/$(<:d)$(<:b).xcd xcu=$(PRJ)$/registry$/data$/$(<:d)$(<:b).xcu schemaRoot=$(PRJ)$/registry$/schema
+# --- XCS ---
-# convert to old format xcd format
-$(MISC)$/xcdformat$/%.xcd : %.xcu
- -$(MKDIR) -p $(@:d)
- $(JAVA) -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/cfgimport.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $(PRJ)$/registry$/schema$/$(<:d)$(<:b).xcs $(PRJ)$/util$/rschema.xsl $(MISC)$/xcdformat$/$(<:d)$(<:b).xcd xcu=$(PRJ)$/registry$/data$/$(<:d)$(<:b).xcu schemaRoot=$(PRJ)$/registry$/schema
-
-# stripping and validating schema files
$(MISC)$/registry$/schema$/%.xcs : %.xcs
+ @+echo -------------+ validating and stripping schema files
-$(MKDIR) -p $(@:d)
+ $(JAVA) -classpath $(SOLARBINDIR)$/jaxp.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/cfgimport.jar -Djavax.xml.parsers.SAXParserFactory=com.sun.xml.parser.SAXParserFactoryImpl org.openoffice.configuration.Inspector $<
$(JAVA) -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/schema_val.xsl $(@:d)$(<:b).val file=$(<:d)$(<:b) pathSeparator=$/
$(JAVA) -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/schema_trim.xsl $(@:d)$(<:b).tmp
$(JAVA) -classpath $(SOLARBINDIR)$/jaxp.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/schema.jar -Djavax.xml.parsers.SAXParserFactory=com.sun.xml.parser.SAXParserFactoryImpl org.openoffice.helper.PrettyPrinter $(@:d)$(<:b).tmp $(@:d)$(<:b).xcs
- +$(RM) $(@:d)$(<:b).tmp
- +$(RM) $(@:d)$(<:b).val
+ +$(RM) $(@:d)$(<:b).tmp > $(NULLDEV)
+ +$(RM) $(@:d)$(<:b).val > $(NULLDEV)
-# validating and creating a locale independent file
+$(MISC)$/xcdformat$/%.xcd : %.xcs
+ @+echo -------------+ convert xcs to old format xcd format
+ -$(MKDIR) -p $(@:d)
+ $(JAVA) -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/cfgimport.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/rschema.xsl $(MISC)$/xcdformat$/$(<:d)$(<:b).xcd xcu=$(PRJ)$/registry$/data$/$(<:d)$(<:b).xcu schemaRoot=$(PRJ)$/registry$/schema
+
+$(MISC)$/instance$/%.xml : $(MISC)$/xcdformat$/%.xcd
+ @+echo -------------+ create old output format
+ $(JAVA) -Xmx128m -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/jaxp.jar$(PATH_SEPERATOR)$(CLASSDIR)$/cfgimport.jar org.openoffice.configuration.XMLDefaultGenerator $< $(PRJ)$/util $(MISC) $(PRJ)$/data
+
+$(MISC)$/registry$/res$/{$(alliso)}$/%.properties :| %.xcs
+ @+echo -------------+ creating locale dependent resource bundles
+ -$(MKDIR) -p $(@:d)
+ $(JAVA) -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/resource.xsl $(@:d)$(<:b).properties locale={$(subst,$/$<, $(subst,$(MISC)$/registry$/res$/, $(subst,.properties,.xcs $@)))}
+
+# --- XCU ---
+
$(MISC)$/registry$/data$/%.xcu : %.xcu
+ @+echo -------------+ validating and creating a locale independent file
-$(MKDIR) -p $(@:d)
+ $(JAVA) -classpath $(SOLARBINDIR)$/jaxp.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/cfgimport.jar -Djavax.xml.parsers.SAXParserFactory=com.sun.xml.parser.SAXParserFactoryImpl org.openoffice.configuration.Inspector $<
$(JAVA) -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/cfgimport.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/data_val.xsl $(@:d)$(<:b).val xcs=$(PRJ)$/registry$/schema$/$(<:d)$(<:b).xcs schemaRoot=$(PRJ)$/registry$/schema
$(JAVA) -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/cfgimport.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/alllang.xsl $(@:d)$(<:b).tmp xcs=$(PRJ)$/registry$/schema$/$(<:d)$(<:b).xcs schemaRoot=$(PRJ)$/registry$/schema
$(JAVA) -classpath $(SOLARBINDIR)$/jaxp.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/schema.jar -Djavax.xml.parsers.SAXParserFactory=com.sun.xml.parser.SAXParserFactoryImpl org.openoffice.helper.PrettyPrinter $(@:d)$(<:b).tmp $(@:d)$(<:b).xcu
- +$(RM) $(@:d)$(<:b).tmp
- +$(RM) $(@:d)$(<:b).val
-
-# creating locale dependent entries
+ +$(RM) $(@:d)$(<:b).tmp > $(NULLDEV)
+ +$(RM) $(@:d)$(<:b).val > $(NULLDEV)
+
+$(MISC)$/xcdformat$/%.xcd : %.xcu
+ @+echo -------------+ convert xcu to old format xcd format
+ -$(MKDIR) -p $(@:d)
+ $(JAVA) -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/cfgimport.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $(PRJ)$/registry$/schema$/$(<:d)$(<:b).xcs $(PRJ)$/util$/rschema.xsl $(MISC)$/xcdformat$/$(<:d)$(<:b).xcd xcu=$(PRJ)$/registry$/data$/$(<:d)$(<:b).xcu schemaRoot=$(PRJ)$/registry$/schema
+
$(MISC)$/registry$/res$/{$(alliso)}$/%.xcu :| %.xcu
+ @+echo -------------+ creating locale dependent entries
-$(MKDIR) -p $(@:d)
$(JAVA) -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/cfgimport.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/alllang.xsl $(@:d)$(<:b).tmp xcs=$(PRJ)$/registry$/schema$/$(<:d)$(<:b).xcs schemaRoot=$(PRJ)$/registry$/schema locale={$(subst,$/$<, $(subst,$(MISC)$/registry$/res$/, $@))}
$(JAVA) -classpath $(SOLARBINDIR)$/jaxp.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/schema.jar -Djavax.xml.parsers.SAXParserFactory=com.sun.xml.parser.SAXParserFactoryImpl org.openoffice.helper.PrettyPrinter $(@:d)$(<:b).tmp $(@:d)$(<:b).xcu
- +$(RM) $(@:d)$(<:b).tmp
+ +$(RM) $(@:d)$(<:b).tmp > $(NULLDEV)
-# creating locale dependent resource bundles
-$(MISC)$/registry$/res$/{$(alliso)}$/%.properties :| %.xcs
+$(MISC)$/compare$/%.xcd : $(MISC)$/xcdformat$/%.xcd
+ @+echo -------------+ comparing generated xcd with original xcd
-$(MKDIR) -p $(@:d)
- $(JAVA) -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/resource.xsl $(@:d)$(<:b).properties locale={$(subst,$/$<, $(subst,$(MISC)$/registry$/res$/, $(subst,.properties,.xcs $@)))}
+ $(JAVA) -Xmx128m -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/cfgimport.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/compare.xsl $@ org=$(PRJ)$/data$/{$(subst,$(MISC)$/xcdformat, $(<:d))}$(<:b).xcd
+
-#xxxxxxxxx
# create old output format obsolete
#$(MISC)$/instance$/%.xml : %.xcd
# $(JAVA) -Xmx128m -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/jaxp.jar$(PATH_SEPERATOR)$(CLASSDIR)$/cfgimport.jar org.openoffice.configuration.XMLDefaultGenerator $< $(PRJ)$/util $(MISC) $(PRJ)$/data
-
-# comparing generated xcd with original xcd
-$(MISC)$/compare$/%.xcd : $(MISC)$/xcdformat$/%.xcd
- -$(MKDIR) -p $(@:d)
- $(JAVA) -Xmx128m -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/cfgimport.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/compare.xsl $@ org=$(PRJ)$/data$/{$(subst,$(MISC)$/xcdformat, $(<:d))}$(<:b).xcd
#$(MISC)$/compare-instance$/%.xml : $(MISC)$/instance$/%.xml
# -$(MKDIR) -p $(@:d)
@@ -123,13 +129,3 @@ $(MISC)$/compare$/%.xcd : $(MISC)$/xcdformat$/%.xcd
#$(MISC)$/compare-template$/%.xml : $(MISC)$/template$/%.xml
# -$(MKDIR) -p $(@:d)
# $(JAVA) -Xmx128m -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/cfgimport.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/compare-xml.xsl $@ org=$(PRJ)$/template$/{$(subst,$(MISC)$/template, $(<:d))}$(<:b).xml
-
-
-
-
-
-
-
-
-
-