summaryrefslogtreecommitdiff
path: root/officecfg
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2000-09-18 15:33:13 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2000-09-18 15:33:13 +0000
commitee27dd72550ce8815e06e337d3682d5b8d9d7b11 (patch)
treec785600f8cc75cd1191fc9966bee9cb0742bb780 /officecfg
parentc25ec0608a167bcf1d891043f02273761c351701 (diff)
initial import
Diffstat (limited to 'officecfg')
-rw-r--r--officecfg/prj/d.lst28
-rw-r--r--officecfg/util/makefile.pmk14
-rw-r--r--officecfg/util/template.gen34
3 files changed, 76 insertions, 0 deletions
diff --git a/officecfg/prj/d.lst b/officecfg/prj/d.lst
new file mode 100644
index 000000000000..4d5b5b84a7a6
--- /dev/null
+++ b/officecfg/prj/d.lst
@@ -0,0 +1,28 @@
+mkdir: %_DEST%\xml%_EXT%
+mkdir: %_DEST%\xml%_EXT%\office
+mkdir: %_DEST%\xml%_EXT%\office\instance
+mkdir: %_DEST%\xml%_EXT%\office\schema
+mkdir: %_DEST%\xml%_EXT%\office\definition
+
+..\schema\schema.description.dtd %_DEST%\xml%_EXT%\office\schema\schema.description.dtd
+
+..\%__SRC%\misc\org.openoffice.Office.Calc.ins %_DEST%\xml%_EXT%\office\instance\org.openoffice.Office.Calc.xml
+..\%__SRC%\misc\org.openoffice.Office.Chart.ins %_DEST%\xml%_EXT%\office\instance\org.openoffice.Office.Chart.xml
+..\%__SRC%\misc\org.openoffice.Office.Common.ins %_DEST%\xml%_EXT%\office\instance\org.openoffice.Office.Common.xml
+..\%__SRC%\misc\org.openoffice.Office.DataAccess.ins %_DEST%\xml%_EXT%\office\instance\org.openoffice.Office.DataAccess.xml
+..\%__SRC%\misc\org.openoffice.Office.Draw.ins %_DEST%\xml%_EXT%\office\instance\org.openoffice.Office.Draw.xml
+..\%__SRC%\misc\org.openoffice.Office.Impress.ins %_DEST%\xml%_EXT%\office\instance\org.openoffice.Office.Impress.xml
+..\%__SRC%\misc\org.openoffice.Office.Java.ins %_DEST%\xml%_EXT%\office\instance\org.openoffice.Office.Java.xml
+..\%__SRC%\misc\org.openoffice.Office.Linguistic.ins %_DEST%\xml%_EXT%\office\instance\org.openoffice.Office.Linguistic.xml
+..\%__SRC%\misc\org.openoffice.Office.Math.ins %_DEST%\xml%_EXT%\office\instance\org.openoffice.Office.Math.xml
+..\%__SRC%\misc\org.openoffice.Office.Writer.ins %_DEST%\xml%_EXT%\office\instance\org.openoffice.Office.Writer.xml
+..\%__SRC%\misc\org.openoffice.Office.WriterWeb.ins %_DEST%\xml%_EXT%\office\instance\org.openoffice.Office.WriterWeb.xml
+..\%__SRC%\misc\org.openoffice.Inet.ins %_DEST%\xml%_EXT%\office\instance\org.openoffice.Inet.xml
+..\%__SRC%\misc\org.openoffice.ucb.Hierarchy.ins %_DEST%\xml%_EXT%\office\instance\org.openoffice.ucb.Hierarchy.xml
+..\%__SRC%\misc\org.openoffice.Setup.ins %_DEST%\xml%_EXT%\office\instance\org.openoffice.Setup.xml
+..\%__SRC%\misc\org.openoffice.Templates.ins %_DEST%\xml%_EXT%\office\instance\org.openoffice.Templates.xml
+..\%__SRC%\misc\org.openoffice.UserProfile.ins %_DEST%\xml%_EXT%\office\instance\org.openoffice.UserProfile.xml
+
+..\%__SRC%\misc\*.xsd %_DEST%\xml%_EXT%\office\schema\*.xsd
+..\data\*.xml %_DEST%\xml%_EXT%\office\definition\*.xml
+
diff --git a/officecfg/util/makefile.pmk b/officecfg/util/makefile.pmk
new file mode 100644
index 000000000000..88cfcdbf499c
--- /dev/null
+++ b/officecfg/util/makefile.pmk
@@ -0,0 +1,14 @@
+
+$(MISC)$/%.ins : %.xml
+ java -classpath $(COMMON_BUILD_TOOLS)$/xt19991105.jar$(PATH_SEPERATOR)$(COMMON_BUILD_TOOLS)$/parser.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/instance.xsl $@ path=$(PRJ)$/data
+
+$(MISC)$/%.tpl : %.xml
+ java -classpath $(COMMON_BUILD_TOOLS)$/xt19991105.jar$(PATH_SEPERATOR)$(COMMON_BUILD_TOOLS)$/parser.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/instance.xsl $@ templates=true path=$(PRJ)$/data
+
+$(MISC)$/%.xsd : %.xml
+ java -classpath $(COMMON_BUILD_TOOLS)$/xt19991105.jar$(PATH_SEPERATOR)$(COMMON_BUILD_TOOLS)$/parser.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/schema.xsl $@
+
+
+
+
+
diff --git a/officecfg/util/template.gen b/officecfg/util/template.gen
new file mode 100644
index 000000000000..5b2c3d40886a
--- /dev/null
+++ b/officecfg/util/template.gen
@@ -0,0 +1,34 @@
+: # -*- perl -*-
+eval 'exec perl -wS $0 ${1+"$@"}'
+ if 0;
+
+open(OUTFILE, ">$ARGV[1]");
+
+print OUTFILE "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
+print OUTFILE "<org.openoffice.Templates>\n";
+
+
+chdir($ARGV[0]) or die "can't chdir() to $ARGV[0]";
+
+opendir(DIR, ".");
+
+@files=readdir(DIR);
+
+foreach $file (@files) {
+ if ( $file =~ /\w*\.tpl/ ) {
+ open(INFILE, "<$file") or die "can't open file $file";
+ while(<INFILE>) {
+ if ( /xml version=/ ) {
+ next;
+ }
+ print OUTFILE;
+ }
+ close(INFILE);
+ }
+}
+
+print OUTFILE "</org.openoffice.Templates>\n";
+
+closedir(DIR);
+
+close(OUTFILE);