add script to publish extension on tabellio.entrouvert.com

This commit is contained in:
Frédéric Péters 2012-12-03 14:47:25 +01:00
parent d699edd411
commit 722d49125c
1 changed files with 22 additions and 0 deletions

22
upload.sh Executable file
View File

@ -0,0 +1,22 @@
#! /bin/sh
make tabellio-pcf.ott
make tabellio-pfb.ott
make tabellio.oxt
VERSION=$(grep "version value" addon/description.xml | cut -d'"' -f2)
cat << _EOF_ > update.xml
<?xml version="1.0" encoding="UTF-8"?>
<description xmlns="http://openoffice.org/extensions/update/2006"
xmlns:xlink="http://www.w3.org/1999/xlink">
<identifier value="org.tabellio.openoffice"/>
<version value="$VERSION" />
<update-download>
<src xlink:href="http://tabellio.entrouvert.com/tabellio.oxt" />
</update-download>
</description>
_EOF_
scp update.xml tabellio-pcf.ott tabellio-pfb.ott tabellio.oxt leucas.entrouvert.org:/var/vhosts/tabellio.entrouvert.com/web/