Difference between revisions of "Creating update information for extensions"

From Apache OpenOffice Wiki
Jump to: navigation, search
Line 11: Line 11:
  
 
==Using the Macros==
 
==Using the Macros==
 +
 +
<pre>
 +
EXTUPDATEINFO_NAME=org.openoffice.extensions.testarea.desktop.updateinfo.update.xml
 +
EXTUPDATEINFO_SOURCE=description.xml
 +
EXTUPDATEINFO_URLS = http://extensions.openoffice.org/testarea/desktop/updateinfocreation/update/updateinfo.oxt
 +
 +
.INCLUDE :  target.mk
 +
</pre>
 +
 +
The name provided to EXTUPDATEINFO_NAME will be the name of the update information file. It will be created in the misc directory. The name should be close to the extension identifier, which is contained in the description.xml. Because the identifier can contain arbitrary tokens, not all identifier can be used as file names (for example an identifier containing a '/').

Revision as of 11:50, 20 March 2007

OOo Extensions project

Please view the wiki usage guidelines
before contributing.

Categories:

Pages:

Extensions on the main site

Extensions in other languages:
ES - FR - IT - JA - NL - OC -

For publishing information about an available update one needs to provide the "update information". For more specific information please read the specification "Online Update for Extensions".

Some XML elements from the description.xml are also part of the update information (version, identifier, dependencies). To avoid maintaining a update information file, we provide a perl program that creates the file based on the description.xml. The program is contained in solenv/bin/make_ext_update_info.pl. The program can be used from a makefile. To facilitate this, there are these macros:

  1. EXTUPDATEINFO_NAME
  2. EXTUPDATEINFO_SOURCE
  3. EXTUPDATEINFO_URLS

Using the Macros

EXTUPDATEINFO_NAME=org.openoffice.extensions.testarea.desktop.updateinfo.update.xml
EXTUPDATEINFO_SOURCE=description.xml
EXTUPDATEINFO_URLS = http://extensions.openoffice.org/testarea/desktop/updateinfocreation/update/updateinfo.oxt

.INCLUDE :  target.mk

The name provided to EXTUPDATEINFO_NAME will be the name of the update information file. It will be created in the misc directory. The name should be close to the extension identifier, which is contained in the description.xml. Because the identifier can contain arbitrary tokens, not all identifier can be used as file names (for example an identifier containing a '/').

Personal tools