--- trunk/mage-buildserver/buildserver-functions.sh 2014/09/08 14:59:12 2816 +++ trunk/mage-buildserver/buildserver-functions.sh 2014/09/08 14:59:56 2817 @@ -98,21 +98,11 @@ echo "${BUILD_ARCH[*]}" } -enum-all-arch-types() +enum-playground-arch-types() { local arch local build_arch_types - for arch in src ${BUILD_ARCH[*]} - do - if [ ! -e ${BUILDSERVER_CONFIG_DIR}/profiles/${BUILDROOT_PROFILE}/${arch}/mage.rc ] - then - echo "Warning: mage.rc of '${arch}' not found. Arch '${arch}' ignored." >&2 - else - build_arch_types+=( "${arch}" ) - fi - done - if [[ ${BUILD_PLAYGROUND} -eq 1 ]] then for arch in ${BUILD_ARCH[*]} @@ -128,3 +118,21 @@ echo "${build_arch_types[*]}" } + +enum-all-arch-types() +{ + local arch + local build_arch_types + + for arch in src $(enum-build-arch-types) $(enum-playground-arch-types) + do + if [ ! -e ${BUILDSERVER_CONFIG_DIR}/profiles/${BUILDROOT_PROFILE}/${arch}/mage.rc ] + then + echo "Warning: mage.rc of '${arch}' not found. Arch '${arch}' ignored." >&2 + else + build_arch_types+=( "${arch}" ) + fi + done + + echo "${build_arch_types[*]}" +}