scripts/addon: add option to test if addon() fails

I need this for my repo buildscripts.
This commit is contained in:
Stefan Saraev 2014-10-25 19:57:22 +03:00
parent edfd56c544
commit 0a37f62e26

View File

@ -121,6 +121,7 @@ if [ "$PKG_IS_ADDON" = "yes" ] ; then
echo "*** WARNING: It's recommended to have a $PKG_DIR/changelog.txt file ***"
fi
if [ "$2" != "-test" ] ; then
cd $ADDON_BUILD
echo "*** compressing Addon $PKG_ADDON_ID ... ***"
zip -rq $PKG_ADDON_ID-$CUST_ADDON_VERSION.zip $PKG_ADDON_ID;
@ -140,4 +141,5 @@ if [ "$PKG_IS_ADDON" = "yes" ] ; then
elif [ -f $PKG_BUILD/icon.png ]; then
cp $PKG_BUILD/icon.png $TARGET/$ADDONS/$ADDON_VERSION/$PROJECT/$TARGET_ARCH/$PKG_ADDON_ID/icon.png
fi
fi
fi