mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
scripts/create_addon: add changelog to new "news" item
This commit is contained in:
@@ -20,5 +20,8 @@
|
||||
@PKG_DISCLAIMER@
|
||||
</disclaimer>
|
||||
<platform>all</platform>
|
||||
<news>
|
||||
@PKG_ADDON_NEWS@
|
||||
</news>
|
||||
</extension>
|
||||
</addon>
|
||||
|
||||
@@ -20,5 +20,8 @@
|
||||
@PKG_DISCLAIMER@
|
||||
</disclaimer>
|
||||
<platform>all</platform>
|
||||
<news>
|
||||
@PKG_ADDON_NEWS@
|
||||
</news>
|
||||
</extension>
|
||||
</addon>
|
||||
|
||||
@@ -22,5 +22,8 @@
|
||||
@PKG_DISCLAIMER@
|
||||
</disclaimer>
|
||||
<platform>all</platform>
|
||||
<news>
|
||||
@PKG_ADDON_NEWS@
|
||||
</news>
|
||||
</extension>
|
||||
</addon>
|
||||
|
||||
@@ -20,5 +20,8 @@
|
||||
@PKG_DISCLAIMER@
|
||||
</disclaimer>
|
||||
<platform>all</platform>
|
||||
<news>
|
||||
@PKG_ADDON_NEWS@
|
||||
</news>
|
||||
</extension>
|
||||
</addon>
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user