[[$(echo$IMPLEMENTED | grep$platform)!=""]]&&PLATFORMS="$PLATFORMS$platform "||echo"Platform $platform is not implemented in this project yet. Sorry"
done
echo"Platforms are $PLATFORMS"
for platform in$PLATFORMS;do
export_variables
echo"Working with $platform now"
export_variables "./prod_build/$platform/conf/*"
IFS=' '
PKG_TYPE=$(echo$PKG_FORMAT | cut-d' '-f1)
#Check if chroots are present
echo$HOST_DISTR_VERSIONS
echo$HOST_ARCH_VERSIONS
[-e prod_build/$platform/scripts/pre-build.sh ]&& prod_build/$platform/scripts/pre-build.sh $CHROOT_PREFIX#For actions not in chroot (version update)
[-e prod_build/$platform/scripts/pre-build.sh ]&& prod_build/$platform/scripts/pre-build.sh $CHROOT_PREFIX||exit$?#For actions before build not in chroot and in chroot (version update, install missing dependencies(under schroot))