1 --- officecfg/util/makefile.pmk.orig 2003-09-23 10:17:12.000000000 -0700
2 +++ officecfg/util/makefile.pmk 2003-09-23 10:23:40.000000000 -0700
4 $(MISC)$/registry$/schema$/%.xcs : %.xcs
5 @+echo -------------+ validating and stripping schema files
7 +.IF "$(SOLAR_JAVA)"!=""
8 $(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 $<
9 $(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=$/
10 $(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$/sanity.xsl $(@:d)$(<:b).san file=$(<:d)$(<:b) pathSeparator=$/
11 $(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
12 $(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
14 +# xsltproc already validates against the dtd. For additional validation,
15 +# org.openoffice.configuration.Inspector should be replaced and the
16 +# replacement should be invoked here.
17 + $(XSLTPROC) -o $(@:d)$(<:b).val \
18 + --stringparam file $(<:d)$(<:b) \
19 + --stringparam pathSeparator $/ \
20 + $(PRJ)$/util$/schema_val.xsl $<
21 + $(XSLTPROC) -o $(@:d)$(<:b).san \
22 + --stringparam file $(<:d)$(<:b) \
23 + --stringparam pathSeparator $/ \
24 + $(PRJ)$/util$/sanity.xsl $<
25 + $(XSLTPROC) -o $(@:d)$(<:b).tmp \
26 + $(PRJ)$/util$/schema_trim.xsl $<
27 +# xsltproc already seems to pretty-print the xml, so
28 +# org.openoffice.helper.PrettyPrinter seems to be unnecessary.
29 + cp $(@:d)$(<:b).tmp $(@:d)$(<:b).xcs
31 +$(RM) $(@:d)$(<:b).tmp > $(NULLDEV)
32 +$(RM) $(@:d)$(<:b).val > $(NULLDEV)
34 $(MISC)$/registry$/res$/{$(alliso)}$/%.properties :| %.xcs
35 @+echo -------------+ creating locale dependent resource bundles
37 +.IF "$(SOLAR_JAVA)"!=""
38 $(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 $@)))}
40 + $(XSLTPROC) -o $(@:d)$(<:b).properties \
41 + --stringparam locale {$(subst,$/$<, $(subst,$(MISC)$/registry$/res$/, $(subst,.properties,.xcs $@)))} \
42 + $(PRJ)$/util$/resource.xsl $<
47 $(MISC)$/registry$/data$/%.xcu : %.xcu
48 @+echo -------------+ validating and creating a locale independent file
50 +.IF "$(SOLAR_JAVA)"!=""
51 $(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 $<
52 $(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
53 $(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
54 $(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
56 +# xsltproc already validates against the dtd. For additional validation,
57 +# org.openoffice.configuration.Inspector should be replaced and the
58 +# replacement should be invoked here.
59 + $(SED) 's|xmlns:filehelper="http://www.jclark.com/xt/java/org.openoffice.configuration.FileHelper"||;s|extension-element-prefixes="filehelper"||;s|filehelper:makeAbs(\(.*\))|\1|' < $(PRJ)$/util$/data_val.xsl > $(PRJ)$/util$/dataval2.xsl
60 + $(SED) 's|xmlns:filehelper="http://www.jclark.com/xt/java/org.openoffice.configuration.FileHelper"||;s|extension-element-prefixes="filehelper"||;s|filehelper:makeAbs(\(.*\))|\1|' < $(PRJ)$/util$/alllang.xsl > $(PRJ)$/util$/alllang2.xsl
61 + $(XSLTPROC) -o $(@:d)$(<:b).val \
62 + --stringparam xcs $(PWD)$/$(PRJ)$/registry$/schema$/$(<:d)$(<:b).xcs \
63 + --stringparam schemaRoot $(PWD)$/$(PRJ)$/registry$/schema \
64 + $(PRJ)$/util$/dataval2.xsl $<
65 + $(XSLTPROC) -o $(@:d)$(<:b).tmp \
66 + --stringparam xcs $(PWD)$/$(PRJ)$/registry$/schema$/$(<:d)$(<:b).xcs \
67 + --stringparam schemaRoot $(PWD)$/$(PRJ)$/registry$/schema \
68 + $(PRJ)$/util$/alllang2.xsl $<
69 +# xsltproc already seems to pretty-print the xml, so
70 +# org.openoffice.helper.PrettyPrinter seems to be unnecessary.
71 + cp $(@:d)$(<:b).tmp $(@:d)$(<:b).xcu
72 + +$(RM) $(PRJ)$/util$/dataval2.xsl > $(NULLDEV)
73 + +$(RM) $(PRJ)$/util$/alllang2.xsl > $(NULLDEV)
75 +$(RM) $(@:d)$(<:b).tmp > $(NULLDEV)
76 +$(RM) $(@:d)$(<:b).val > $(NULLDEV)
78 $(MISC)$/registry$/res$/{$(alliso)}$/%.xcu :| %.xcu
79 @+echo -------------+ creating locale dependent entries
81 +.IF "$(SOLAR_JAVA)"!=""
82 $(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$/, $@))}
83 $(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
85 + $(SED) 's|xmlns:filehelper="http://www.jclark.com/xt/java/org.openoffice.configuration.FileHelper"||;s|extension-element-prefixes="filehelper"||;s|filehelper:makeAbs(\(.*\))|\1|' < $(PRJ)$/util$/alllang.xsl > $(PRJ)$/util$/alllang2.xsl
86 + $(XSLTPROC) -o $(@:d)$(<:b).tmp \
87 + --stringparam xcs $(PWD)$/$(PRJ)$/registry$/schema$/$(<:d)$(<:b).xcs \
88 + --stringparam schemaRoot $(PWD)$/$(PRJ)$/registry$/schema \
89 + --stringparam locale {$(subst,$/$<, $(subst,$(MISC)$/registry$/res$/, $@))} \
90 + $(PRJ)$/util$/alllang2.xsl $<
91 +# xsltproc already seems to pretty-print the xml, so
92 +# org.openoffice.helper.PrettyPrinter seems to be unnecessary.
93 + cp $(@:d)$(<:b).tmp $(@:d)$(<:b).xcu
94 + +$(RM) $(PRJ)$/util$/alllang2.xsl > $(NULLDEV)
96 +$(RM) $(@:d)$(<:b).tmp > $(NULLDEV)