summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-04-29 18:41:17 +0300
committerTor Lillqvist <tlillqvist@novell.com>2011-04-29 18:41:17 +0300
commitf183369a8d84854fc60241d7b7d055c6781e7c74 (patch)
tree7378c41e67ae0b48a59772344afdaa5dbfdb163b
parentfe3462b4cc8d3aea3f2abac06f41780e16d63672 (diff)
Fix Cygwin path and symlink problems, thanks to shm_get
-rw-r--r--writerfilter/Library_doctok.mk20
-rw-r--r--writerfilter/Library_ooxml.mk42
2 files changed, 33 insertions, 29 deletions
diff --git a/writerfilter/Library_doctok.mk b/writerfilter/Library_doctok.mk
index 867802ebf693..13b6896bd26f 100644
--- a/writerfilter/Library_doctok.mk
+++ b/writerfilter/Library_doctok.mk
@@ -88,15 +88,17 @@ doctok_GENDIR := $(WORKDIR)/writerfilter
doctok_HXXOUTDIR := $(doctok_GENDIR)/inc/doctok
doctok_HXXOUTDIRCREATED := $(doctok_HXXOUTDIR)/created
-doctok_QNAMETOSTRXSL := $(SRCDIR)/writerfilter/source/doctok/qnametostr.xsl
-doctok_RESOURCEIDSXSL := $(SRCDIR)/writerfilter/source/doctok/resourceids.xsl
-doctok_RESOURCESIMPLXSL := $(SRCDIR)/writerfilter/source/doctok/resourcesimpl.xsl
-doctok_RESOURCESXSL := $(SRCDIR)/writerfilter/source/doctok/resources.xsl
-doctok_RESOURCETOOLSXSL := $(SRCDIR)/writerfilter/source/doctok/resourcetools.xsl
-doctok_SPRMCODETOSTRXSL := $(SRCDIR)/writerfilter/source/doctok/sprmcodetostr.xsl
-doctok_SPRMIDSXSL := $(SRCDIR)/writerfilter/source/doctok/sprmids.xsl
+ooxml_BASEDIR := $(realpath $(SRCDIR)/writerfilter)
-doctok_MODEL := $(SRCDIR)/writerfilter/source/doctok/resources.xmi
+doctok_QNAMETOSTRXSL := $(ooxml_BASEDIR)/source/doctok/qnametostr.xsl
+doctok_RESOURCEIDSXSL := $(ooxml_BASEDIR)/source/doctok/resourceids.xsl
+doctok_RESOURCESIMPLXSL := $(ooxml_BASEDIR)/source/doctok/resourcesimpl.xsl
+doctok_RESOURCESXSL := $(ooxml_BASEDIR)/source/doctok/resources.xsl
+doctok_RESOURCETOOLSXSL := $(ooxml_BASEDIR)/source/doctok/resourcetools.xsl
+doctok_SPRMCODETOSTRXSL := $(ooxml_BASEDIR)/source/doctok/sprmcodetostr.xsl
+doctok_SPRMIDSXSL := $(ooxml_BASEDIR)/source/doctok/sprmids.xsl
+
+doctok_MODEL := $(ooxml_BASEDIR)/source/doctok/resources.xmi
doctok_RESOURCEIDSHXX := $(doctok_HXXOUTDIR)/resourceids.hxx
doctok_SPRMIDSHXX := $(doctok_HXXOUTDIR)/sprmids.hxx
@@ -124,7 +126,7 @@ $(doctok_GENHEADERS) : $(doctok_HXXOUTDIRCREATED)
define doctok_xsl_process_model
$(1) : $(2) $(doctok_MODEL)
- mkdir -p $(dir $(1)) && $(gb_XSLTPROC) --nonet $(2) $(doctok_MODEL) > $(1)
+ mkdir -p $(dir $(1)) && $$(call gb_Helper_abbreviate_dirs_native,$(gb_XSLTPROC) --nonet $(2) $(doctok_MODEL)) > $(1)
endef
$(eval $(call doctok_xsl_process_model,$(doctok_RESOURCESHXX),$(doctok_RESOURCESXSL)))
diff --git a/writerfilter/Library_ooxml.mk b/writerfilter/Library_ooxml.mk
index fc7bd8ac8e6e..13aeb210de21 100644
--- a/writerfilter/Library_ooxml.mk
+++ b/writerfilter/Library_ooxml.mk
@@ -160,23 +160,25 @@ define ooxml_namespace_headers
$(foreach namespace,$(ooxml_NAMESPACES),$(call ooxml_factory_header,$(namespace)))
endef
-ooxml_MODEL := $(SRCDIR)/writerfilter/source/ooxml/model.xml
-
-ooxml_FACTORYIMPLNSXSL := $(SRCDIR)/writerfilter/source/ooxml/factoryimpl_ns.xsl
-ooxml_FACTORYIMPLXSL := $(SRCDIR)/writerfilter/source/ooxml/factoryimpl.xsl
-ooxml_FACTORYINCXSL := $(SRCDIR)/writerfilter/source/ooxml/factoryinc.xsl
-ooxml_FACTORYNSXSL := $(SRCDIR)/writerfilter/source/ooxml/factory_ns.xsl
-ooxml_FACTORYTOOLSXSL := $(SRCDIR)/writerfilter/source/ooxml/factorytools.xsl
-ooxml_FACTORYVALUESIMPLXSL := $(SRCDIR)/writerfilter/source/ooxml/factoryimpl_values.xsl
-ooxml_FACTORYVALUESXSL := $(SRCDIR)/writerfilter/source/ooxml/factory_values.xsl
-ooxml_FASTTOKENSXSL := $(SRCDIR)/writerfilter/source/ooxml/fasttokens.xsl
-ooxml_GPERFFASTTOKENXSL := $(SRCDIR)/writerfilter/source/ooxml/gperffasttokenhandler.xsl
-ooxml_NAMESPACEIDSXSL := $(SRCDIR)/writerfilter/source/ooxml/namespaceids.xsl
-ooxml_PREPROCESSXSL := $(SRCDIR)/writerfilter/source/ooxml/modelpreprocess.xsl
-ooxml_QNAMETOSTRXSL := $(SRCDIR)/writerfilter/source/ooxml/qnametostr.xsl
-ooxml_RESORUCETOKENSXSL := $(SRCDIR)/writerfilter/source/ooxml/resourcestokens.xsl
-ooxml_RESOURCEIDSXSL := $(SRCDIR)/writerfilter/source/ooxml/resourceids.xsl
-ooxml_RESOURCESIMPLXSL := $(SRCDIR)/writerfilter/source/ooxml/resourcesimpl.xsl
+ooxml_BASEDIR := $(realpath $(SRCDIR)/writerfilter)
+
+ooxml_MODEL := $(ooxml_BASEDIR)/source/ooxml/model.xml
+
+ooxml_FACTORYIMPLNSXSL := $(ooxml_BASEDIR)/source/ooxml/factoryimpl_ns.xsl
+ooxml_FACTORYIMPLXSL := $(ooxml_BASEDIR)/source/ooxml/factoryimpl.xsl
+ooxml_FACTORYINCXSL := $(ooxml_BASEDIR)/source/ooxml/factoryinc.xsl
+ooxml_FACTORYNSXSL := $(ooxml_BASEDIR)/source/ooxml/factory_ns.xsl
+ooxml_FACTORYTOOLSXSL := $(ooxml_BASEDIR)/source/ooxml/factorytools.xsl
+ooxml_FACTORYVALUESIMPLXSL := $(ooxml_BASEDIR)/source/ooxml/factoryimpl_values.xsl
+ooxml_FACTORYVALUESXSL := $(ooxml_BASEDIR)/source/ooxml/factory_values.xsl
+ooxml_FASTTOKENSXSL := $(ooxml_BASEDIR)/source/ooxml/fasttokens.xsl
+ooxml_GPERFFASTTOKENXSL := $(ooxml_BASEDIR)/source/ooxml/gperffasttokenhandler.xsl
+ooxml_NAMESPACEIDSXSL := $(ooxml_BASEDIR)/source/ooxml/namespaceids.xsl
+ooxml_PREPROCESSXSL := $(ooxml_BASEDIR)/source/ooxml/modelpreprocess.xsl
+ooxml_QNAMETOSTRXSL := $(ooxml_BASEDIR)/source/ooxml/qnametostr.xsl
+ooxml_RESORUCETOKENSXSL := $(ooxml_BASEDIR)/source/ooxml/resourcestokens.xsl
+ooxml_RESOURCEIDSXSL := $(ooxml_BASEDIR)/source/ooxml/resourceids.xsl
+ooxml_RESOURCESIMPLXSL := $(ooxml_BASEDIR)/source/ooxml/resourcesimpl.xsl
ooxml_NSPROCESS := $(SRCDIR)/writerfilter/source/resourcemodel/namespace_preprocess.pl
@@ -237,14 +239,14 @@ $(ooxml_GENHEADERS) : $(ooxml_HXXOUTDIRCREATED)
$(call ooxml_factory_source,%) :| $(call ooxml_factory_header,%)
$(call ooxml_factory_source,%) : $(ooxml_FACTORYIMPLNSXSL) $(ooxml_MODELPROCESSED)
- mkdir -p $(dir $@) && $(gb_XSLTPROC) --nonet --stringparam file $@ $(ooxml_FACTORYIMPLNSXSL) $(ooxml_MODELPROCESSED) > $@
+ mkdir -p $(dir $@) && $(call gb_Helper_abbreviate_dirs_native,$(gb_XSLTPROC) --nonet --stringparam file $@ $(ooxml_FACTORYIMPLNSXSL) $(ooxml_MODELPROCESSED)) > $@
$(call ooxml_factory_header,%) : $(ooxml_FACTORYNSXSL) $(ooxml_MODELPROCESSED)
- mkdir -p $(dir $@) && $(gb_XSLTPROC) --nonet --stringparam file $@ $(ooxml_FACTORYNSXSL) $(ooxml_MODELPROCESSED) > $@
+ mkdir -p $(dir $@) && $(call gb_Helper_abbreviate_dirs_native,$(gb_XSLTPROC) --nonet --stringparam file $@ $(ooxml_FACTORYNSXSL) $(ooxml_MODELPROCESSED)) > $@
define ooxml_xsl_process
$(1) : $(2) $(3)
- mkdir -p $(dir $(1)) && $(gb_XSLTPROC) --nonet $(2) $(3) > $(1)
+ mkdir -p $(dir $(1)) && $$(call gb_Helper_abbreviate_dirs_native,$(gb_XSLTPROC) --nonet $(2) $(3)) > $(1)
endef
define ooxml_xsl_process_model