summaryrefslogtreecommitdiffstats
path: root/filter/source/config/tools/merge
diff options
context:
space:
mode:
authorsb <sb@openoffice.org>2009-09-25 15:27:34 +0200
committersb <sb@openoffice.org>2009-09-25 15:27:34 +0200
commit56da9e53fe9829c5ddb9fe04c0a3f3336143fc04 (patch)
treeb58a95ef775d050e8185c35ea7a46d97c52c5217 /filter/source/config/tools/merge
parentmerged in DEV300_m59 (diff)
parentCreate DEV300_m60 milestone tag from trunk@276428 (diff)
downloadcore-56da9e53fe9829c5ddb9fe04c0a3f3336143fc04.tar.gz
core-56da9e53fe9829c5ddb9fe04c0a3f3336143fc04.zip
merged in DEV300_m60
Diffstat (limited to 'filter/source/config/tools/merge')
-rw-r--r--filter/source/config/tools/merge/FCFGMerge.cfg125
-rw-r--r--filter/source/config/tools/merge/FCFGMerge.java128
-rw-r--r--filter/source/config/tools/merge/Manifest.mf1
-rw-r--r--filter/source/config/tools/merge/Merger.java362
-rw-r--r--filter/source/config/tools/merge/makefile.mk90
5 files changed, 0 insertions, 706 deletions
diff --git a/filter/source/config/tools/merge/FCFGMerge.cfg b/filter/source/config/tools/merge/FCFGMerge.cfg
deleted file mode 100644
index 46fcccafe7e4..000000000000
--- a/filter/source/config/tools/merge/FCFGMerge.cfg
+++ /dev/null
@@ -1,125 +0,0 @@
-#*************************************************************************
-#
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
-# Copyright 2008 by Sun Microsystems, Inc.
-#
-# OpenOffice.org - a multi-platform office productivity suite
-#
-# $RCSfile: FCFGMerge.cfg,v $
-#
-# $Revision: 1.5 $
-#
-# This file is part of OpenOffice.org.
-#
-# OpenOffice.org is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License version 3
-# only, as published by the Free Software Foundation.
-#
-# OpenOffice.org is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License version 3 for more details
-# (a copy is included in the LICENSE file that accompanied this code).
-#
-# You should have received a copy of the GNU Lesser General Public License
-# version 3 along with OpenOffice.org. If not, see
-# <http://www.openoffice.org/license.html>
-# for a copy of the LGPLv3 License.
-#
-#*************************************************************************
-
-#************************************************
-# Specify the verbose mode of this tool.
-# 1 = show errors only
-# 2 = show errors/warnings (default)
-# 3 = show errors/warnings and some generic infos
-# 4 = show anything (including detailed infos)
-#
-# [OPTIONAL]
-#************************************************
-
-loglevel = 2
-
-#************************************************
-# This extension is used for all XML files. It doesnt
-# matter if its used for reading fragments or writing
-# XML packages.
-# Must be given without any additional signes like "."
-# or "*."!
-#
-# [REQUIRED]
-#************************************************
-
-extension_xcu=xcu
-
-#************************************************
-# This extension is used for all Package files. It doesnt
-# matter if its used for reading such files or writing
-# it.
-# Must be given without any additional signes like "."
-# or "*."!
-#
-# [REQUIRED]
-#************************************************
-
-extension_pkg=pkg
-
-#************************************************
-# These values are used to generate a correct XML
-# header.
-# Note: The property "xmlpackage" must be specified
-# via command line. There exists more then one
-# possible value.
-#
-# [REQUIRED]
-#************************************************
-
-xmlversion = 1.0
-xmlencoding = UTF-8
-xmlpath = org.openoffice.TypeDetection
-#xmlpackage =
-
-#************************************************
-# These values are used to name the configuration
-# sets inside the generated XCM file for different
-# item groups like e.g. types, filters etcpp.
-#
-# [REQUIRED]
-#************************************************
-
-setname_types = Types
-setname_filters = Filters
-setname_frameloaders = FrameLoaders
-setname_contenthandlers = ContentHandlers
-
-subdir_types = types
-subdir_filters = filters
-subdir_frameloaders = frameloaders
-subdir_contenthandlers = contenthandlers
-
-#************************************************
-# This delimiter is used to split every
-# item list of the package configuration files
-# (which are temp. created by the make proccess)
-# into its tokens.
-#
-# [REQUIRED]
-#************************************************
-delimiter=,
-
-#************************************************
-# Enable/disable removing of leading/trailing withespaces
-# during splitting stringlists.
-#
-# [REQUIRED]
-#************************************************
-trim=true
-
-#************************************************
-# Enable/disable removing of leading/trailing "-signs
-# during splitting stringlists.
-#
-# [REQUIRED]
-#************************************************
-decode=false
diff --git a/filter/source/config/tools/merge/FCFGMerge.java b/filter/source/config/tools/merge/FCFGMerge.java
deleted file mode 100644
index 1b37bab0e89a..000000000000
--- a/filter/source/config/tools/merge/FCFGMerge.java
+++ /dev/null
@@ -1,128 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: FCFGMerge.java,v $
- * $Revision: 1.5 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-package com.sun.star.filter.config.tools.merge;
-
-//_______________________________________________
-
-import com.sun.star.filter.config.tools.utils.*;
-
-//_______________________________________________
-
-/**
- * Its a simple command line tool, which can merge different XML fragments
- * together. Such fragments must exist as files on disk, will be moved into
- * one file together on disk.
- *
- *
- */
-public class FCFGMerge
-{
- //___________________________________________
- // const
-
- private static final java.lang.String CFGFILE = "com/sun/star/filter/config/tools/merge/FCFGMerge.cfg";
- private static final java.lang.String PROP_LOGLEVEL = "loglevel";
-
- //___________________________________________
- // main
-
- public static void main(java.lang.String[] sCmdLine)
- {
- FCFGMerge.printCopyright();
-
- // create log object in default mode "WARNINGS"
- // If a command line parameter indicates another
- // level - change it!
- Logger aLog = new Logger();
-
- try
- {
- // merge config file and overwrite properties
- // via command line
- ConfigHelper aCfg = null;
- aCfg = new ConfigHelper(CFGFILE, sCmdLine);
-
- // update log level
- int nLogLevel = aCfg.getInt(PROP_LOGLEVEL, Logger.LEVEL_WARNINGS);
- aLog = new Logger(nLogLevel);
-
- // help requested?
- if (aCfg.isHelp())
- {
- FCFGMerge.printHelp();
- System.exit(-1);
- }
-
- // create new merge object and start operation
- Merger aMerger = new Merger(aCfg, aLog);
- aMerger.merge();
- }
- catch(java.lang.Throwable ex)
- {
- aLog.setException(ex);
- System.exit(-1);
- }
-
- System.exit(0);
- }
-
- //___________________________________________
-
- /** prints out a copyright message on stdout.
- */
- private static void printCopyright()
- {
- java.lang.StringBuffer sOut = new java.lang.StringBuffer(256);
- sOut.append("FCFGMerge\n");
- sOut.append("Copyright: 2003 by Sun Microsystems, Inc.\n");
- sOut.append("All Rights Reserved.\n");
- System.out.println(sOut.toString());
- }
-
- //___________________________________________
-
- /** prints out a help message on stdout.
- */
- private static void printHelp()
- {
- java.lang.StringBuffer sOut = new java.lang.StringBuffer(256);
- sOut.append("____________________________________________________________\n");
- sOut.append("usage: FCFGMerge cfg=<file name>\n" );
- sOut.append("parameters:\n" );
- sOut.append("\tcfg=<file name>\n" );
- sOut.append("\t\tmust point to a system file, which contains\n" );
- sOut.append("\t\tall neccessary configuration data for the merge process.\n");
- sOut.append("\n\tFurther cou can specify every parameter allowed in the\n" );
- sOut.append("\n\tconfig file as command line parameter too, to overwrite\n" );
- sOut.append("\n\tthe value from the file.\n" );
- System.out.println(sOut.toString());
- }
-}
diff --git a/filter/source/config/tools/merge/Manifest.mf b/filter/source/config/tools/merge/Manifest.mf
deleted file mode 100644
index 1337eaf4d39a..000000000000
--- a/filter/source/config/tools/merge/Manifest.mf
+++ /dev/null
@@ -1 +0,0 @@
-Main-Class: com.sun.star.filter.config.tools.merge.FCFGMerge
diff --git a/filter/source/config/tools/merge/Merger.java b/filter/source/config/tools/merge/Merger.java
deleted file mode 100644
index 34e27a3835da..000000000000
--- a/filter/source/config/tools/merge/Merger.java
+++ /dev/null
@@ -1,362 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: Merger.java,v $
- * $Revision: 1.8 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-package com.sun.star.filter.config.tools.merge;
-
-//_______________________________________________
-
-import java.io.*;
-import com.sun.star.filter.config.tools.utils.*;
-
-//_______________________________________________
-
-/** can merge different xml fragments together.
- *
- *
- */
-public class Merger
-{
- //___________________________________________
- // const
-
- private static final java.lang.String PROP_XMLVERSION = "xmlversion" ; // <= global cfg file
- private static final java.lang.String PROP_XMLENCODING = "xmlencoding" ; // <= global cfg file
- private static final java.lang.String PROP_XMLPATH = "xmlpath" ; // <= global cfg file
- private static final java.lang.String PROP_XMLPACKAGE = "xmlpackage" ; // <= global cfg file
-
- private static final java.lang.String PROP_SETNAME_TYPES = "setname_types" ; // <= global cfg file
- private static final java.lang.String PROP_SETNAME_FILTERS = "setname_filters" ; // <= global cfg file
- private static final java.lang.String PROP_SETNAME_LOADERS = "setname_frameloaders" ; // <= global cfg file
- private static final java.lang.String PROP_SETNAME_HANDLERS = "setname_contenthandlers" ; // <= global cfg file
-
- private static final java.lang.String PROP_SUBDIR_TYPES = "subdir_types" ; // <= global cfg file
- private static final java.lang.String PROP_SUBDIR_FILTERS = "subdir_filters" ; // <= global cfg file
- private static final java.lang.String PROP_SUBDIR_LOADERS = "subdir_frameloaders" ; // <= global cfg file
- private static final java.lang.String PROP_SUBDIR_HANDLERS = "subdir_contenthandlers" ; // <= global cfg file
-
- private static final java.lang.String PROP_EXTENSION_XCU = "extension_xcu" ; // <= global cfg file
- private static final java.lang.String PROP_EXTENSION_PKG = "extension_pkg" ; // <= global cfg file
-
- private static final java.lang.String PROP_DELIMITER = "delimiter" ; // <= global cfg file
- private static final java.lang.String PROP_TRIM = "trim" ; // <= global cfg file
- private static final java.lang.String PROP_DECODE = "decode" ; // <= global cfg file
-
- private static final java.lang.String PROP_FRAGMENTSDIR = "fragmentsdir" ; // <= cmdline
- private static final java.lang.String PROP_TEMPDIR = "tempdir" ; // <= cmdline
- private static final java.lang.String PROP_OUTDIR = "outdir" ; // <= cmdline
- private static final java.lang.String PROP_PKG = "pkg" ; // <= cmdline
- private static final java.lang.String PROP_DEBUG = "debug" ; // <= cmdline
-
- private static final java.lang.String PROP_TCFG = "tcfg" ; // <= cmdline
- private static final java.lang.String PROP_FCFG = "fcfg" ; // <= cmdline
- private static final java.lang.String PROP_LCFG = "lcfg" ; // <= cmdline
- private static final java.lang.String PROP_CCFG = "ccfg" ; // <= cmdline
- private static final java.lang.String PROP_LANGUAGEPACK = "languagepack" ; // <= cmdline
-
- private static final java.lang.String PROP_ITEMS = "items" ; // <= pkg cfg files!
-
- //___________________________________________
- // member
-
- //-------------------------------------------
- /** TODO */
- private ConfigHelper m_aCfg;
-
- //-------------------------------------------
- /** TODO */
- private Logger m_aLog;
-
- //-------------------------------------------
- /** TODO */
- private java.io.File m_aFragmentsDir;
-
- //-------------------------------------------
- /** TODO */
- private java.io.File m_aTempDir;
-
- //-------------------------------------------
- /** TODO */
- private java.io.File m_aOutDir;
-
- //-------------------------------------------
- /** TODO */
- private java.util.Vector m_lTypes;
- private java.util.Vector m_lFilters;
- private java.util.Vector m_lLoaders;
- private java.util.Vector m_lHandlers;
-
- //___________________________________________
- // interface
-
- //-------------------------------------------
- /** initialize a new instance of this class and
- * try to get all needed resources from the config module.
- *
- * @param aCfg
- * provides access to all values of the global
- * config file and to the command line.
- *
- * @param aLog
- * can be used to print out log informations.
- */
- public Merger(ConfigHelper aCfg,
- Logger aLog)
- throws java.lang.Exception
- {
- m_aCfg = aCfg;
- m_aLog = aLog;
-
- m_aFragmentsDir = new java.io.File(m_aCfg.getString(PROP_FRAGMENTSDIR));
- m_aTempDir = new java.io.File(m_aCfg.getString(PROP_TEMPDIR ));
-// m_aOutDir = new java.io.File(m_aCfg.getString(PROP_OUTDIR ));
-
- java.lang.String sDelimiter = m_aCfg.getString(PROP_DELIMITER);
- boolean bTrim = m_aCfg.getBoolean(PROP_TRIM);
- boolean bDecode = m_aCfg.getBoolean(PROP_DECODE);
-
- try
- {
- ConfigHelper aFcfg = new ConfigHelper(m_aCfg.getString(PROP_TCFG), null);
- m_lTypes = aFcfg.getStringList(PROP_ITEMS, sDelimiter, bTrim, bDecode);
- }
- catch(java.util.NoSuchElementException ex1)
- {
- m_lTypes = new java.util.Vector();
- //m_aLog.setWarning("Fragment list of types is missing. Parameter \"items\" seems to be invalid.");
- }
-
- try
- {
- ConfigHelper aFcfg = new ConfigHelper(m_aCfg.getString(PROP_FCFG), null);
- m_lFilters = aFcfg.getStringList(PROP_ITEMS, sDelimiter, bTrim, bDecode);
- }
- catch(java.util.NoSuchElementException ex1)
- {
- m_lFilters = new java.util.Vector();
- //m_aLog.setWarning("Fragment list of filters is missing. Parameter \"items\" seems to be invalid.");
- }
-
- try
- {
- ConfigHelper aFcfg = new ConfigHelper(m_aCfg.getString(PROP_LCFG), null);
- m_lLoaders = aFcfg.getStringList(PROP_ITEMS, sDelimiter, bTrim, bDecode);
- }
- catch(java.util.NoSuchElementException ex1)
- {
- m_lLoaders = new java.util.Vector();
- //m_aLog.setWarning("Fragment list of frame loader objects is missing. Parameter \"items\" seems to be invalid.");
- }
-
- try
- {
- ConfigHelper aFcfg = new ConfigHelper(m_aCfg.getString(PROP_CCFG), null);
- m_lHandlers = aFcfg.getStringList(PROP_ITEMS, sDelimiter, bTrim, bDecode);
- }
- catch(java.util.NoSuchElementException ex1)
- {
- m_lHandlers = new java.util.Vector();
- //m_aLog.setWarning("Fragment list of content handler objects is missing. Parameter \"items\" seems to be invalid.");
- }
- }
-
- //-------------------------------------------
- /** TODO */
- public synchronized void merge()
- throws java.lang.Exception
- {
- java.lang.StringBuffer sBuffer = new java.lang.StringBuffer(1000000);
- java.lang.String sPackage = m_aCfg.getString(PROP_PKG);
-
- m_aLog.setGlobalInfo("create package \""+sPackage+"\" ...");
- m_aLog.setDetailedInfo("generate package header ... ");
-
- sBuffer.append(
- XMLHelper.generateHeader(
- m_aCfg.getString (PROP_XMLVERSION ),
- m_aCfg.getString (PROP_XMLENCODING ),
- m_aCfg.getString (PROP_XMLPATH ),
- m_aCfg.getString (PROP_XMLPACKAGE ),
- m_aCfg.getBoolean(PROP_LANGUAGEPACK, false)));
-
- // counts all transfered fragments
- // Can be used later to decide, if a generated package file
- // contains "nothing"!
- int nItemCount = 0;
-
- for (int i=0; i<4; ++i)
- {
- java.lang.String sSetName = null;
- java.lang.String sSubDir = null;
- java.util.Vector lFragments = null;
-
- try
- {
- switch(i)
- {
- case 0: // types
- {
- m_aLog.setDetailedInfo("generate set for types ... ");
- sSetName = m_aCfg.getString(PROP_SETNAME_TYPES);
- sSubDir = m_aCfg.getString(PROP_SUBDIR_TYPES );
- lFragments = m_lTypes;
- }
- break;
-
- case 1: // filters
- {
- m_aLog.setDetailedInfo("generate set for filter ... ");
- sSetName = m_aCfg.getString(PROP_SETNAME_FILTERS);
- sSubDir = m_aCfg.getString(PROP_SUBDIR_FILTERS );
- lFragments = m_lFilters;
- }
- break;
-
- case 2: // loaders
- {
- m_aLog.setDetailedInfo("generate set for frame loader ... ");
- sSetName = m_aCfg.getString(PROP_SETNAME_LOADERS);
- sSubDir = m_aCfg.getString(PROP_SUBDIR_LOADERS );
- lFragments = m_lLoaders;
- }
- break;
-
- case 3: // handlers
- {
- m_aLog.setDetailedInfo("generate set for content handler ... ");
- sSetName = m_aCfg.getString(PROP_SETNAME_HANDLERS);
- sSubDir = m_aCfg.getString(PROP_SUBDIR_HANDLERS );
- lFragments = m_lHandlers;
- }
- break;
- }
-
- nItemCount += lFragments.size();
-
- getFragments(
- new java.io.File(m_aFragmentsDir, sSubDir),
- sSetName,
- lFragments,
- 1,
- sBuffer);
- }
- catch(java.util.NoSuchElementException exIgnore)
- { continue; }
- }
-
- m_aLog.setDetailedInfo("generate package footer ... ");
- sBuffer.append(XMLHelper.generateFooter());
-
- // Attention!
- // If the package seem to be empty, it make no sense to generate a corresponding
- // xml file. We should suppress writing of this file on disk completly ...
- if (nItemCount < 1)
- {
- m_aLog.setWarning("Package is empty and will not result into a xml file on disk!? Please check configuration file.");
- return;
- }
- m_aLog.setGlobalInfo("package contains "+nItemCount+" items");
-
- java.io.File aPackage = new File(sPackage);
- m_aLog.setGlobalInfo("write temp package \""+aPackage.getPath()); // TODO encoding must be readed from the configuration
- FileHelper.writeEncodedBufferToFile(aPackage, "UTF-8", false, sBuffer); // check for success is done inside this method!
- }
-
- //-------------------------------------------
- /** TODO */
- private void getFragments(java.io.File aDir ,
- java.lang.String sSetName ,
- java.util.Vector lFragments ,
- int nPrettyTabs,
- java.lang.StringBuffer sBuffer )
- throws java.lang.Exception
- {
- if (lFragments.size()<1)
- {
- m_aLog.setWarning("List of fragments is empty!? Will be ignored ...");
- return;
- }
-
- java.util.Enumeration pFragments = lFragments.elements();
- java.lang.String sExtXcu = m_aCfg.getString(PROP_EXTENSION_XCU);
-
- for (int tabs=0; tabs<nPrettyTabs; ++tabs)
- sBuffer.append("\t");
- sBuffer.append("<node oor:name=\""+sSetName+"\">\n");
- ++nPrettyTabs;
-
- // special mode for generating language packs.
- // In such case we must live with some missing fragment files.
- // Reason behind; Not all filters are realy localized.
- // But we dont use a different fragment list. We try to locate
- // any fragment file in its language-pack version ...
- boolean bHandleLanguagePacks = m_aCfg.getBoolean(PROP_LANGUAGEPACK, false);
- boolean bDebug = m_aCfg.getBoolean(PROP_DEBUG , false);
- java.lang.String sEncoding = "UTF-8";
- if (bDebug)
- sEncoding = "UTF-8Special";
-
- while(pFragments.hasMoreElements())
- {
- java.lang.String sFragment = (java.lang.String)pFragments.nextElement();
- java.io.File aFragment = new java.io.File(aDir, sFragment+"."+sExtXcu);
-
- // handle simple files only and check for existence!
- if (!aFragment.exists())
- {
- if (bHandleLanguagePacks)
- {
- m_aLog.setWarning("language fragment \""+aFragment.getPath()+"\" does not exist. Will be ignored.");
- continue;
- }
- else
- throw new java.io.IOException("fragment \""+aFragment.getPath()+"\" does not exists.");
- }
-
- if (!aFragment.isFile())
- {
- m_aLog.setWarning("fragment \""+aFragment.getPath()+"\" seem to be not a valid file.");
- continue;
- }
-
- // copy file content of original fragment
- // Note: A FileNotFoundException will be thrown automaticly by the
- // used reader objects. Let it break this method too. Our calli is interested
- // on such errors :-)
- m_aLog.setDetailedInfo("merge fragment \""+aFragment.getPath()+"\" ...");
- FileHelper.readEncodedBufferFromFile(aFragment, sEncoding, sBuffer);
-
- sBuffer.append("\n");
- }
-
- --nPrettyTabs;
- for (int tabs=0; tabs<nPrettyTabs; ++tabs)
- sBuffer.append("\t");
- sBuffer.append("</node>\n");
- }
-}
diff --git a/filter/source/config/tools/merge/makefile.mk b/filter/source/config/tools/merge/makefile.mk
deleted file mode 100644
index 84175ab43cfb..000000000000
--- a/filter/source/config/tools/merge/makefile.mk
+++ /dev/null
@@ -1,90 +0,0 @@
-#*************************************************************************
-#
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
-# Copyright 2008 by Sun Microsystems, Inc.
-#
-# OpenOffice.org - a multi-platform office productivity suite
-#
-# $RCSfile: makefile.mk,v $
-#
-# $Revision: 1.9.102.1 $
-#
-# This file is part of OpenOffice.org.
-#
-# OpenOffice.org is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License version 3
-# only, as published by the Free Software Foundation.
-#
-# OpenOffice.org is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License version 3 for more details
-# (a copy is included in the LICENSE file that accompanied this code).
-#
-# You should have received a copy of the GNU Lesser General Public License
-# version 3 along with OpenOffice.org. If not, see
-# <http://www.openoffice.org/license.html>
-# for a copy of the LGPLv3 License.
-#
-#*************************************************************************
-
-PRJ = ..$/..$/..$/..
-TARGET = FCFGMerge
-PRJNAME = filter
-PACKAGE = com$/sun$/star$/filter$/config$/tools$/merge
-
-# --- Settings -----------------------------------------------------
-
-.INCLUDE: settings.mk
-
-#----- compile .java files -----------------------------------------
-
-OWNCOPY = \
- $(MISC)$/$(TARGET)_copied.done
-
-JARFILES = \
- ridl.jar \
- unoil.jar \
- jurt.jar \
- juh.jar \
- java_uno.jar
-
-CFGFILES = \
- FCFGMerge.cfg
-
-JAVACLASSFILES = \
- $(CLASSDIR)$/$(PACKAGE)$/Merger.class \
- $(CLASSDIR)$/$(PACKAGE)$/FCFGMerge.class
-
-CUSTOMMANIFESTFILE = \
- Manifest.mf
-
-MAXLINELENGTH = 100000
-
-#----- make a jar from compiled files ------------------------------
-
-JARCLASSDIRS = \
- com$/sun$/star$/filter$/config$/tools$/utils \
- com$/sun$/star$/filter$/config$/tools$/merge
-
-JARTARGET = $(TARGET).jar
-
-JARCOMPRESS = TRUE
-
-# --- targets -----------------------------------------------------
-
-.INCLUDE : target.mk
-
-.IF "$(SOLAR_JAVA)" != "" || "$(GUI)"=="OS2"
-ALLTAR : $(OWNCOPY)
-
-.IF "$(JARTARGETN)" != ""
-$(JARTARGETN) : $(OWNCOPY)
-.ENDIF
-
-$(OWNCOPY) : $(CFGFILES)
- -$(MKDIR) $(CLASSDIR)$/$(PACKAGE)
- $(COPY) $? $(CLASSDIR)$/$(PACKAGE) && $(TOUCH) $@
-
-.ENDIF # "$(SOLAR_JAVA)" != ""