scripts/create_addon: add changelog to new "news" item

This commit is contained in:
Lukas Rusak 2016-10-12 15:39:51 -07:00
parent 6e1e08ef96
commit e400a90838
No known key found for this signature in database
GPG Key ID: 8C310C807E7393A3
5 changed files with 19 additions and 1 deletions

View File

@ -20,5 +20,8 @@
@PKG_DISCLAIMER@
</disclaimer>
<platform>all</platform>
<news>
@PKG_ADDON_NEWS@
</news>
</extension>
</addon>

View File

@ -20,5 +20,8 @@
@PKG_DISCLAIMER@
</disclaimer>
<platform>all</platform>
<news>
@PKG_ADDON_NEWS@
</news>
</extension>
</addon>

View File

@ -22,5 +22,8 @@
@PKG_DISCLAIMER@
</disclaimer>
<platform>all</platform>
<news>
@PKG_ADDON_NEWS@
</news>
</extension>
</addon>

View File

@ -20,5 +20,8 @@
@PKG_DISCLAIMER@
</disclaimer>
<platform>all</platform>
<news>
@PKG_ADDON_NEWS@
</news>
</extension>
</addon>

View File

@ -75,7 +75,13 @@ pack_addon() {
fi
if [ -f $PKG_DIR/changelog.txt ]; then
cp $PKG_DIR/changelog.txt $ADDON_BUILD/$PKG_ADDON_ID
sed -e "/@PKG_ADDON_NEWS@/ \
{
r $PKG_DIR/changelog.txt
d
}" -i $ADDON_BUILD/$PKG_ADDON_ID/addon.xml
else
sed -e "s|@PKG_ADDON_NEWS@||g" -i $ADDON_BUILD/$PKG_ADDON_ID/addon.xml
fi
PROVIDER_NAME="libreelec.tv"