Fix updchk xcu data after gbuild'ification

For one, install:module was missing from xcu files that are processed with
gb_Configuration_add_spool_modules, resulting in effectively empty output
xcu files.  For another, localization from Addons.xcu is now merged into
per-lang registry_*.xcd in postprocess/packregistry/makefile.mk.

Change-Id: Ie87edbad163b124d18090ab36aa36de560a20cbc
This commit is contained in:
Stephan Bergmann
2012-05-11 13:08:51 +02:00
parent d4e161e87b
commit 3f5ddf2e87
4 changed files with 42 additions and 19 deletions

View File

@@ -34,8 +34,14 @@ $(eval $(call gb_Configuration_add_spool_modules,updchk,extensions/source/update
org/openoffice/Office/Addons-onlineupdate.xcu \
))
# The resulting solver/*/pck/updchk_*.zip are merged into registry_*.xcd in
# postprocess/packregistry/makefile.mk (in principle, localizations of an
# install:module should go into their own per-lang xcd files, but they are
# currently all merged into a global per-lang registry_*.xcd, see e.g. how
# localized "Title" property values of
# /org.openoffice.Office.Common/Menus/New/m0 (install:module="writer") end up in
# registry_*.xcd instead of a, say, writer_*.xcd):
$(eval $(call gb_Configuration_add_localized_datas,updchk,extensions/source/update/check,\
org/openoffice/Office/Jobs.xcu \
org/openoffice/Office/Addons.xcu \
))

View File

@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?>
<oor:component-data oor:name="Addons" oor:package="org.openoffice.Office" xmlns:install="http://openoffice.org/2004/installation" xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<node oor:name="AddonUI">
<node oor:name="AddonUI" install:module="onlineupdate">
<node oor:name="OfficeHelp">
<node oor:name="UpdateCheckJob" oor:op="replace">
<prop oor:name="URL" oor:type="xs:string">

View File

@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?>
<oor:component-data oor:name="Jobs" oor:package="org.openoffice.Office" xmlns:install="http://openoffice.org/2004/installation" xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<node oor:name="Jobs">
<node oor:name="Jobs" install:module="onlineupdate">
<node oor:name="UpdateCheck" oor:op="replace">
<prop oor:name="Service">
<value>com.sun.star.setup.UpdateCheck</value>

View File

@@ -531,30 +531,47 @@ $(MISC)/lang/fcfg_langpack_%.xcd .ERRREMOVE :
$(MISC)/lang/registry_{$(alllangiso)}.xcd : $(SOLARPCKDIR)/$$(@:b).zip
.IF "$(BUILD_TYPE)" != "$(BUILD_TYPE:s/DBCONNECTIVITY//)"
$(MISC)/lang/registry_{$(alllangiso)}.xcd : $(SOLARPCKDIR)/fcfg_drivers_$$(@:b:s/registry_//).zip
.ENDIF
$(MISC)/lang/registry_{$(alllangiso)}.xcd : \
$(SOLARPCKDIR)/fcfg_drivers_$$(@:b:s/registry_//).zip
.END
.IF "$(ENABLE_ONLINE_UPDATE)" == "TRUE"
$(MISC)/lang/registry_{$(alllangiso)}.xcd : \
$(SOLARPCKDIR)/updchk_$$(@:b:s/registry_//).zip
.END
$(MISC)/lang/registry_%.xcd .ERRREMOVE :
$(MKDIRHIER) $(@:d)
- $(RM) $(MISC)/$(@:b).list
echo '<list>' > $(MISC)/$(@:b).list
# Add registry_*.zip content to *.list:
rm -rf $(MISC)/$(@:b).unzip
mkdir $(MISC)/$(@:b).unzip
cd $(MISC)/$(@:b).unzip && unzip $(SOLARPCKDIR)/$(@:b).zip
# Filter out filenames starting with ".":
echo $(foreach,i,$(shell cd $(MISC) && \
find $(@:b).unzip -name \[!.\]\*.xcu -print) \
'<filename>$i</filename>') >> $(MISC)/$(@:b).list
.IF "$(BUILD_TYPE)" != "$(BUILD_TYPE:s/DBCONNECTIVITY//)"
# Add fcfg_drivers_*.zip content to *.list:
rm -rf $(MISC)/fcfg_drivers_$*.unzip
mkdir $(MISC)/fcfg_drivers_$*.unzip
cd $(MISC)/fcfg_drivers_$*.unzip && \
unzip $(SOLARPCKDIR)/fcfg_drivers_$*.zip
.ENDIF
- $(RM) $(MISC)/$(@:b).list
# filter out filenames starting with "."
.IF "$(BUILD_TYPE)" != "$(BUILD_TYPE:s/DBCONNECTIVITY//)"
echo '<list>' $(foreach,i,$(shell cd $(MISC) && \
find $(@:b).unzip fcfg_drivers_$*.unzip -name \[!.\]\*.xcu -print) \
'<filename>$i</filename>') '</list>' > $(MISC)/$(@:b).list
.ELSE
echo '<list>' $(foreach,i,$(shell cd $(MISC) && \
find $(@:b).unzip -name \[!.\]\*.xcu -print) \
'<filename>$i</filename>') '</list>' > $(MISC)/$(@:b).list
.ENDIF
cd $(MISC)/fcfg_drivers_$*.unzip && unzip $(SOLARPCKDIR)/fcfg_drivers_$*.zip
# Filter out filenames starting with ".":
echo $(foreach,i,$(shell cd $(MISC) && \
find fcfg_drivers_$*.unzip -name \[!.\]\*.xcu -print) \
'<filename>$i</filename>') >> $(MISC)/$(@:b).list
.END
.IF "$(ENABLE_ONLINE_UPDATE)" == "TRUE"
# Add updchk_*.zip content to *.list:
rm -rf $(MISC)/updchk_$*.unzip
mkdir $(MISC)/updchk_$*.unzip
cd $(MISC)/updchk_$*.unzip && unzip $(SOLARPCKDIR)/updchk_$*.zip
# Filter out filenames starting with ".":
echo $(foreach,i,$(shell cd $(MISC) && \
find updchk_$*.unzip -name \[!.\]\*.xcu -print) \
'<filename>$i</filename>') >> $(MISC)/$(@:b).list
.END
echo '</list>' >> $(MISC)/$(@:b).list
$(XSLTPROC) --nonet --stringparam prefix $(PWD)/$(MISC)/ -o $@ \
$(SOLARENV)/bin/packregistry.xslt $(MISC)/$(@:b).list