summaryrefslogtreecommitdiff
path: root/sdext/source/presenter/makefile.mk
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2011-10-08 21:20:31 +0200
committerAndras Timar <atimar@suse.com>2011-10-20 11:10:53 +0200
commit89f7e17692d019a68d251d39bcc592a4ee8ba0dc (patch)
tree044065bc45d2501fb7af3209e744416a6b384f5d /sdext/source/presenter/makefile.mk
parent8c2902ecbf135fae070ea032fa10a59bb76ec1b0 (diff)
localize description.xml of presenter-screen extension
Diffstat (limited to 'sdext/source/presenter/makefile.mk')
-rw-r--r--sdext/source/presenter/makefile.mk18
1 files changed, 11 insertions, 7 deletions
diff --git a/sdext/source/presenter/makefile.mk b/sdext/source/presenter/makefile.mk
index 1afbb1e68093..df6c6339e9a1 100644
--- a/sdext/source/presenter/makefile.mk
+++ b/sdext/source/presenter/makefile.mk
@@ -247,9 +247,12 @@ COMPONENT_LIBRARY= \
PLATFORMID:=$(RTL_OS:l)_$(RTL_ARCH:l)
COMPONENT_HELP= \
- $(ZIP1DIR)$/help/component.txt \
$(foreach,l,$(alllangiso) $(ZIP1DIR)$/help$/$l$/com.sun.PresenterScreen-$(PLATFORMID)$/presenter.xhp)
+COMPONENT_DESCRIPTION= \
+ $(foreach,l,$(alllangiso:s/en-US//) $(ZIP1DIR)$/$l-description.txt) \
+ $(ZIP1DIR)$/description.txt
+
ZIP1DEPS= \
$(DESCRIPTION) \
$(COMPONENT_MANIFEST) \
@@ -257,7 +260,8 @@ ZIP1DEPS= \
$(COMPONENT_BITMAPS) \
$(COMPONENT_IMAGES) \
$(COMPONENT_LIBRARY) \
- $(COMPONENT_HELP)
+ $(COMPONENT_HELP) \
+ $(COMPONENT_DESCRIPTION)
LINKNAME:=help
XHPLINKSRC:=$(ZIP1DIR)/help
@@ -284,10 +288,6 @@ $(COMPONENT_MANIFEST) : $$(@:f)
@-$(MKDIRHIER) $(@:d)
+$(TYPE) $< | $(SED) "s/SHARED_EXTENSION/$(DLLPOST)/" > $@
-$(ZIP1DIR)$/help$/component.txt : help$/$$(@:f)
- @@-$(MKDIRHIER) $(@:d)
- $(COPY) $< $@
-
$(ZIP1DIR)$/help$/%$/com.sun.PresenterScreen-$(PLATFORMID)$/presenter.xhp : $(COMMONMISC)$/%$/com.sun.PresenterScreen$/presenter.xhp
@echo creating $@
@-$(MKDIRHIER) $(@:d)
@@ -368,7 +368,11 @@ PHONYDESC=.PHONY
$(DESCRIPTION) $(PHONYDESC) : $$(@:f)
@-$(MKDIRHIER) $(@:d)
@echo LAST_WITH_LANG=$(WITH_LANG) > $(ZIP1DIR)_lang_track.mk
- $(TYPE) description.xml | sed s/UPDATED_PLATFORM/$(PLATFORMID)/ > $@
+ $(GNUCOPY) description.txt $(ZIP1DIR)/description.txt
+ $(XRMEX) -p $(PRJNAME) -i description.xml -o $@ -m $(LOCALIZESDF) -l all
+ $(TYPE) $@ | sed s/UPDATED_PLATFORM/$(PLATFORMID)/ > $@.new
+ mv $@.new $@
+
ALLTAR: $(MISC)/../bin/presenter-screen.oxt
# hotfix to missing localizations