scripts/create_addon: add support for project specific addons

This commit is contained in:
Stefan Saraev 2015-04-19 00:53:04 +03:00
parent 252b7b77c1
commit 71febe4aad

View File

@ -30,6 +30,18 @@ if [ -n "$PKG_ARCH" -a ! "$PKG_ARCH" = "any" ]; then
echo "$PKG_ARCH" | grep -q "\-$TARGET_ARCH" && exit 0
fi
if [ -n "$PKG_ADDON_PROJECTS" -a ! "$PKG_ADDON_PROJECTS" = "any" ]; then
for _PROJECT in $PKG_ADDON_PROJECTS ; do
if [ "$_PROJECT" = "$PROJECT" ] ; then
PROJECT_SUPPORTED="yes"
fi
done
if [ ! "$PROJECT_SUPPORTED" = "yes" ] ; then
echo "*** ERROR: $PKG_ADDON_ID: '$PROJECT' not supported ***"
exit 0
fi
fi
if [ "$PKG_IS_ADDON" = "yes" ] ; then
$SCRIPTS/build $@