On Wed, Oct 19, 2011 at 05:59:26PM +0800, jianlizhao wrote: > I'm trying to add the my_extension to my Windows build of OOo 3.1. > > I tried to follow the instructions at : > http://wiki.services.openoffice.org/wiki/Extensions_Integration_into_Install > ation_Set > > > In file_ooo.scp: > File gid_File_Oxt_pdfimport > TXT_FILE_BODY; > Styles = (PACKED); > Dir = gid_Brand_Dir_Share_Extension_Install; > Name = "myextion.oxt"; > End > > In module_hidden.scp: > Module gid_Module_Optional_PDFImport > Name = "gid_File_Oxt_pdfimport"; > Description = "gid_File_Oxt_pdfimport"; > ParentID = gid_Module_Optional; > Default=YES; > Files = (gid_File_Oxt_pdfimport); > End > > > > I read the article many times. I still can not solve the problem. > My question is: > > > I do not know which directory the Extensions files(myextion.oxt) is > located under slover.
it must be the /bin folder. But you do not place stuff there manually; the files are delivered there from a module. Play with the attached patch to see if you get the idea. It has a rather dummy approach of working with the extensions already zipped as oxt files. If you want to integrate the extensions in sdext or swext you should modify the prj/d.lst file to copy the oxt's in the bin dir. Regards -- Ariel Constenla-Haile La Plata, Argentina
From fb86be9528b98643b414e84ccac07a9973b8ea98 Mon Sep 17 00:00:00 2001 From: Ariel Constenla-Haile <ariel.constenla.ha...@gmail.com> Date: Wed, 19 Oct 2011 19:45:25 -0300 Subject: [PATCH] Example integrating extensions in the installation set --- myextensions/README | 5 ++ myextensions/prj/build.lst | 4 ++ myextensions/prj/d.lst | 1 + myextensions/zipped/makefile.mk | 20 ++++++++ postprocess/prj/build.lst | 2 +- scp2/prj/build.lst | 3 +- scp2/source/extensions/directory_extensions.scp | 13 +++++ scp2/source/extensions/file_extensions.scp | 17 +++++++ scp2/source/extensions/makefile.mk | 26 +++++++++++ scp2/source/extensions/module_extensions.scp | 19 ++++++++ scp2/source/extensions/module_extensions.ulf | 15 ++++++ scp2/util/makefile.mk | 5 ++- sdext/prj/d.lst | 3 + .../source/packinfo/packinfo_extensions.txt | 48 ++++++++++++++++++++ swext/prj/d.lst | 1 + 15 files changed, 179 insertions(+), 3 deletions(-) create mode 100644 myextensions/README create mode 100644 myextensions/prj/build.lst create mode 100644 myextensions/prj/d.lst create mode 100644 myextensions/zipped/makefile.mk create mode 100644 scp2/source/extensions/directory_extensions.scp create mode 100644 scp2/source/extensions/file_extensions.scp create mode 100644 scp2/source/extensions/makefile.mk create mode 100644 scp2/source/extensions/module_extensions.scp create mode 100644 scp2/source/extensions/module_extensions.ulf create mode 100755 setup_native/source/packinfo/packinfo_extensions.txt diff --git a/myextensions/README b/myextensions/README new file mode 100644 index 0000000..e6eaded --- /dev/null +++ b/myextensions/README @@ -0,0 +1,5 @@ +Download the extensions inside myextensions/zipped + +cd zipped +wget http://dl.dropbox.com/u/14712909/macro/w2e/writer2epub.oxt +wget http://extensions.services.openoffice.org/e-files/2425/18/numbertext-0.9.4.oxt \ No newline at end of file diff --git a/myextensions/prj/build.lst b/myextensions/prj/build.lst new file mode 100644 index 0000000..af3501f --- /dev/null +++ b/myextensions/prj/build.lst @@ -0,0 +1,4 @@ +myext myextensions : solenv NULL +myext myextensions usr1 - all myextensions_mkout NULL +myext myextensions\prj get - all myextensions_prj NULL +myext myextensions\zipped nmake - all myextensions_zipped NULL diff --git a/myextensions/prj/d.lst b/myextensions/prj/d.lst new file mode 100644 index 0000000..0a0e3b5 --- /dev/null +++ b/myextensions/prj/d.lst @@ -0,0 +1 @@ +..\%__SRC%\bin\*.oxt %_DEST%\bin\* diff --git a/myextensions/zipped/makefile.mk b/myextensions/zipped/makefile.mk new file mode 100644 index 0000000..cea01e8 --- /dev/null +++ b/myextensions/zipped/makefile.mk @@ -0,0 +1,20 @@ +PRJ=.. + +PRJNAME=myextensions +TARGET=myextensions + +.INCLUDE: settings.mk + +all: \ + copy-sodftp-oxt \ + ALLTAR + +.INCLUDE : target.mk + +OXTFILE1=numbertext-0.9.4.oxt +OXTFILE2=writer2epub.oxt + +copy-sodftp-oxt: $(BIN)/$(OXTFILE1) $(BIN)/$(OXTFILE2) + +$(BIN)/%.oxt: %.oxt + $(COPY) $< $@ diff --git a/postprocess/prj/build.lst b/postprocess/prj/build.lst index 555ae33..bc5e195 100644 --- a/postprocess/prj/build.lst +++ b/postprocess/prj/build.lst @@ -1,4 +1,4 @@ -po postprocess :: accessibility automation basctl bean BINFILTER:binfilter chart2 configmgr CRASHREP:crashrep cui dbaccess desktop dtrans embeddedobj embedserv EPM:epm eventattacher extensions extras fileaccess filter forms fpicker helpcontent2 hwpfilter io JAVAINSTALLER2:javainstaller2 librsvg lingucomponent MATHMLDTD:MathMLDTD ODK:odk officecfg package padmin psprint_config remotebridges sc scaddins sccomp scp2 scripting sd setup_native slideshow starmath sw sysui testtools ucb UnoControls unoxml ure wizards xmerge xmlsecurity MORE_FONTS:more_fonts DICTIONARIES:dictionaries OOo:pyuno OOo:readlicense_oo SO:top unodevtools JFREEREPORT:jfreereport REPORTBUILDER:reportbuilder reportdesign SDEXT:sdext SWEXT:swext smoketestdoc uui writerfilter oox MYSQLC:mysqlc LIBXSLT:libxslt NULL +po postprocess :: accessibility automation basctl bean BINFILTER:binfilter chart2 configmgr CRASHREP:crashrep cui dbaccess desktop dtrans embeddedobj embedserv EPM:epm eventattacher extensions extras fileaccess filter forms fpicker helpcontent2 hwpfilter io JAVAINSTALLER2:javainstaller2 librsvg lingucomponent MATHMLDTD:MathMLDTD ODK:odk officecfg package padmin psprint_config remotebridges sc scaddins sccomp scp2 scripting sd setup_native slideshow starmath sw sysui testtools ucb UnoControls unoxml ure wizards xmerge xmlsecurity MORE_FONTS:more_fonts DICTIONARIES:dictionaries OOo:pyuno OOo:readlicense_oo SO:top unodevtools JFREEREPORT:jfreereport REPORTBUILDER:reportbuilder reportdesign SDEXT:sdext SWEXT:swext smoketestdoc uui writerfilter oox MYSQLC:mysqlc LIBXSLT:libxslt myextensions NULL po postprocess usr1 - all po_mkout NULL po postprocess\checkxml nmake - all po_checkxml NULL po postprocess\checkdeliver nmake - all po_checkdlv NULL diff --git a/scp2/prj/build.lst b/scp2/prj/build.lst index 10632bf..d1d0ebc 100644 --- a/scp2/prj/build.lst +++ b/scp2/prj/build.lst @@ -1,6 +1,7 @@ cp scp2 : L10N:l10n i18npool setup_native l10ntools PYTHON:python ICU:icu REDLAND:redland LIBXSLT:libxslt NULL cp scp2 usr1 - all cp_mkout NULL cp scp2\macros nmake - all cp_langmacros NULL +cp scp2\source\extensions nmake - all cp_extensions NULL cp scp2\source\templates nmake - all cp_langtemplates NULL cp scp2\source\activex nmake - all cp_activex cp_langmacros cp_langtemplates NULL cp scp2\source\binfilter nmake - all cp_binfilter cp_langmacros cp_langtemplates NULL @@ -25,4 +26,4 @@ cp scp2\source\base nmake - all cp_base cp_langmacros cp_ cp scp2\source\xsltfilter nmake - all cp_xsltfilter cp_langmacros cp_langtemplates NULL cp scp2\source\winexplorerext nmake - all cp_winexplorerext cp_langmacros cp_langtemplates NULL cp scp2\source\onlineupdate nmake - all cp_update cp_langmacros cp_langtemplates NULL -cp scp2\util nmake - all cp_util cp_activex cp_binfilter cp_calc cp_canvas cp_crashrep cp_draw cp_gnome cp_graphicfilter cp_impress cp_javafilter cp_kde cp_layout cp_math cp_ooo cp_python cp_quickstart cp_testtool cp_writer cp_base cp_xsltfilter cp_winexplorerext cp_sdkoo cp_update NULL +cp scp2\util nmake - all cp_util cp_extensions cp_activex cp_binfilter cp_calc cp_canvas cp_crashrep cp_draw cp_gnome cp_graphicfilter cp_impress cp_javafilter cp_kde cp_layout cp_math cp_ooo cp_python cp_quickstart cp_testtool cp_writer cp_base cp_xsltfilter cp_winexplorerext cp_sdkoo cp_update NULL diff --git a/scp2/source/extensions/directory_extensions.scp b/scp2/source/extensions/directory_extensions.scp new file mode 100644 index 0000000..532db19 --- /dev/null +++ b/scp2/source/extensions/directory_extensions.scp @@ -0,0 +1,13 @@ +#include "macros.inc" + + +Directory gid_Brand_Dir_Share_Extensions_writer2epub + ParentID = gid_Brand_Dir_Share_Extensions; + DosName = "writer2epub"; +End + + +Directory gid_Brand_Dir_Share_Extensions_numbertext + ParentID = gid_Brand_Dir_Share_Extensions; + DosName = "numbertext-0.9.4"; +End diff --git a/scp2/source/extensions/file_extensions.scp b/scp2/source/extensions/file_extensions.scp new file mode 100644 index 0000000..96feef1 --- /dev/null +++ b/scp2/source/extensions/file_extensions.scp @@ -0,0 +1,17 @@ +#include "macros.inc" + + +File gid_File_Oxt_writer2epub + TXT_FILE_BODY; + Styles = (PACKED, ARCHIVE); + Dir = gid_Brand_Dir_Share_Extensions_writer2epub; + Name = "writer2epub.oxt"; +End + + +File gid_File_Oxt_numbertext + TXT_FILE_BODY; + Styles = (PACKED, ARCHIVE); + Dir = gid_Brand_Dir_Share_Extensions_numbertext; + Name = "numbertext-0.9.4.oxt"; +End diff --git a/scp2/source/extensions/makefile.mk b/scp2/source/extensions/makefile.mk new file mode 100644 index 0000000..f62adef --- /dev/null +++ b/scp2/source/extensions/makefile.mk @@ -0,0 +1,26 @@ + +PRJ=..$/.. + +PRJPCH= + +PRJNAME=scp2 +TARGET=extensions +TARGETTYPE=CUI + +# --- Settings ----------------------------------------------------- + +.INCLUDE : settings.mk + +SCP_PRODUCT_TYPE=osl + +PARFILES = \ + module_extensions.par \ + directory_extensions.par \ + file_extensions.par + +ULFFILES= \ + module_extensions.ulf + +# --- File --------------------------------------------------------- + +.INCLUDE : target.mk diff --git a/scp2/source/extensions/module_extensions.scp b/scp2/source/extensions/module_extensions.scp new file mode 100644 index 0000000..4ae3c0a --- /dev/null +++ b/scp2/source/extensions/module_extensions.scp @@ -0,0 +1,19 @@ +#include "macros.inc" + + +Module gid_Module_Optional_writer2epub + PackageInfo = "packinfo_extensions.txt"; + MOD_NAME_DESC(MODULE_writer2epub); + ParentID = gid_Module_Optional; + Default = YES; + Files = (gid_File_Oxt_writer2epub); +End + + +Module gid_Module_Optional_numbertext + PackageInfo = "packinfo_extensions.txt"; + MOD_NAME_DESC(MODULE_numbertext); + ParentID = gid_Module_Optional; + Default = YES; + Files = (gid_File_Oxt_numbertext); +End diff --git a/scp2/source/extensions/module_extensions.ulf b/scp2/source/extensions/module_extensions.ulf new file mode 100644 index 0000000..b18806f --- /dev/null +++ b/scp2/source/extensions/module_extensions.ulf @@ -0,0 +1,15 @@ + +[STR_NAME_MODULE_writer2epub] +en-US = "Writer2ePub" + +[STR_DESC_MODULE_writer2epub] +en-US = "Writer2ePub for %PRODUCTNAME %PRODUCTVERSION." + + +[STR_NAME_MODULE_numbertext] +en-US = "Numbertext" + +[STR_DESC_MODULE_numbertext] +en-US = "Numbertext for %PRODUCTNAME %PRODUCTVERSION." + + diff --git a/scp2/util/makefile.mk b/scp2/util/makefile.mk index c039428..8a7fd0f 100644 --- a/scp2/util/makefile.mk +++ b/scp2/util/makefile.mk @@ -87,7 +87,10 @@ SCP1FILES = installation_ooo.par \ file_improvement.par \ common_brand.par \ common_brand_readme.par \ - ooo_brand.par + ooo_brand.par \ + file_extensions.par \ + directory_extensions.par \ + module_extensions.par .IF "$(OS)"=="MACOSX" SCP1FILES += \ diff --git a/sdext/prj/d.lst b/sdext/prj/d.lst index bcaa430..19c096e 100644 --- a/sdext/prj/d.lst +++ b/sdext/prj/d.lst @@ -4,7 +4,10 @@ mkdir: %_DEST%\bin%_EXT%\pdfimport ..\%__SRC%\bin\pdf2xml.* %_DEST%\bin%_EXT%\pdf2xml.* ..\%__SRC%\bin\pdfunzip.* %_DEST%\bin%_EXT%\pdfunzip.* ..\%__SRC%\bin\pdfimport.oxt %_DEST%\bin%_EXT%\pdfimport\pdfimport.oxt +..\%__SRC%\bin\pdfimport.oxt %_DEST%\bin\pdfimport.oxt ..\%__SRC%\bin\presentation-minimizer.oxt %_DEST%\bin%_EXT%\minimizer\presentation-minimizer.oxt +..\%__SRC%\bin\presentation-minimizer.oxt %_DEST%\bin\presentation-minimizer.oxt ..\%__SRC%\bin\presentation_minimizer_develop.zip %_DEST%\bin%_EXT%\minimizer\presentation_minimizer_develop.zip ..\%__SRC%\bin\presenter-screen.oxt %_DEST%\bin%_EXT%\presenter\presenter-screen.oxt +..\%__SRC%\bin\presenter-screen.oxt %_DEST%\bin\presenter-screen.oxt ..\%__SRC%\bin\presenter-screen_develop.zip %_DEST%\bin%_EXT%\presenter\presenter-screen_develop.zip diff --git a/setup_native/source/packinfo/packinfo_extensions.txt b/setup_native/source/packinfo/packinfo_extensions.txt new file mode 100755 index 0000000..3b1442f --- /dev/null +++ b/setup_native/source/packinfo/packinfo_extensions.txt @@ -0,0 +1,48 @@ +# Format: + +# Start +# scpModule +# shellscript file (optional) +# solarispackagename +# solarisrequires (optional) +# solarisprovides (optional) +# packagename +# linuxreplaces (optional) +# requires (optional) +# provides (optional) +# copyright +# vendor +# description +# destpath +# End + +Start +module = "gid_Module_Optional_writer2epub" +solarispackagename = "%BASISPACKAGEPREFIX%WITHOUTDOTOOOBASEVERSION-writer2epub" +solarisrequires = "%BASISPACKAGEPREFIX%WITHOUTDOTOOOBASEVERSION-core01" +packagename = "%BASISPACKAGEPREFIX%OOOBASEVERSION-writer2epub" +freebsdrequires = "%BASISPACKAGEPREFIX%OOOBASEVERSION-core01" +requires = "%BASISPACKAGEPREFIX%OOOBASEVERSION-core01" +findrequires = "" +copyright = "1999-2009 by OpenOffice.org" +solariscopyright = "solariscopyrightfile" +vendor = "OpenOffice.org" +description = "writer2epub for OpenOffice.org %OOOBASEVERSION" +destpath = "/opt" +packageversion = "%OOOPACKAGEVERSION" +End + +Start +module = "gid_Module_Optional_numbertext" +solarispackagename = "%BASISPACKAGEPREFIX%WITHOUTDOTOOOBASEVERSION-numbertext" +solarisrequires = "%BASISPACKAGEPREFIX%WITHOUTDOTOOOBASEVERSION-core01" +packagename = "%BASISPACKAGEPREFIX%OOOBASEVERSION-numbertext" +freebsdrequires = "%BASISPACKAGEPREFIX%OOOBASEVERSION-core01" +requires = "%BASISPACKAGEPREFIX%OOOBASEVERSION-core01" +copyright = "1999-2009 by OpenOffice.org" +solariscopyright = "solariscopyrightfile" +vendor = "OpenOffice.org" +description = "numbertext for OpenOffice.org %OOOBASEVERSION" +destpath = "/opt" +packageversion = "%OOOPACKAGEVERSION" +End diff --git a/swext/prj/d.lst b/swext/prj/d.lst index 108d9cd..fca2274 100644 --- a/swext/prj/d.lst +++ b/swext/prj/d.lst @@ -1,4 +1,5 @@ mkdir: %_DEST%\bin%_EXT%\swext ..\%__SRC%\bin\wiki-publisher.oxt %_DEST%\bin%_EXT%\swext\wiki-publisher.oxt +..\%__SRC%\bin\wiki-publisher.oxt %_DEST%\bin\wiki-publisher.oxt ..\%__SRC%\bin\mediawiki_develop.zip %_DEST%\bin%_EXT%\swext\mediawiki_develop.zip -- 1.7.6.4
pgpHRoR4UgQk6.pgp
Description: PGP signature