Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id B2BA8E00D99; Thu, 25 Jan 2018 19:24:38 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [134.134.136.20 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id C9804E00D75 for ; Thu, 25 Jan 2018 19:24:37 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jan 2018 19:24:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,414,1511856000"; d="scan'208";a="169245730" Received: from timo-fedora.jf.intel.com ([10.7.159.66]) by orsmga004.jf.intel.com with ESMTP; 25 Jan 2018 19:24:37 -0800 From: Tim Orling To: yocto@yoctoproject.org Date: Thu, 25 Jan 2018 19:33:03 -0800 Message-Id: <20180126033303.6842-2-timothy.t.orling@linux.intel.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180126033303.6842-1-timothy.t.orling@linux.intel.com> References: <20180126033303.6842-1-timothy.t.orling@linux.intel.com> Subject: [eclipse-poky][oxygen][PATCH v2 2/2] setup.sh: show versions availables and version installed X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jan 2018 03:24:38 -0000 From: Chin Huat Ang Signed-off-by: Chin Huat Ang Signed-off-by: Tim Orling --- scripts/setup.sh | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index 024596bfb1e..e3da101cbe5 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -219,9 +219,13 @@ update_feature_remote() [ $# -lt 3 ] && err_exit 1 "update_feature_remote: invalid parameters, $*" check_local_version $2 $3 $4 && echo "Feature $2 is already installed" && return 0 local installIU="" + local all_versions=$(get_version $1 $2 'all') + + echo "Feature $2 versions available: $all_versions" + if [ "x$4" != "x" ]; then #has max version requirement - for i in "`get_version $1 $2 'all'`"; do + for i in $all_versions; do if [ "$i" \> "$3" ] || [ "$i" = "$3" ] && [ "$i" \< "$4" ]; then [ "$i" \> "$installIU" ] && installIU=$i fi @@ -264,51 +268,51 @@ fi UPDATE_SITE="http://download.eclipse.org/eclipse/updates/4.7" #CDT related -echo -e "\nPlease wait. Installing CDT.SDK.FEATURE.GROUP" CDTFEAT="9.4.0" +echo -e "\nPlease wait. Installing CDT.SDK.FEATURE.GROUP ${CDTFEAT}" update_feature_remote ${MAIN_SITE} org.eclipse.cdt.sdk.feature.group ${CDTFEAT} -echo -e "\nPlease wait. Installing CDT.LAUNCH.REMOTE.FEATURE.GROUP" CDTREMOTEVER="9.4.0" +echo -e "\nPlease wait. Installing CDT.LAUNCH.REMOTE.FEATURE.GROUP ${CDTREMOTEVER}" update_feature_remote ${MAIN_SITE} org.eclipse.cdt.launch.remote.feature.group ${CDTREMOTEVER} #AUTOTOOLS -echo -e "\nPlease wait. Installing AUTOTOOLS.FEATURE.GROUP" ATVER="9.4.0" +echo -e "\nPlease wait. Installing AUTOTOOLS.FEATURE.GROUP ${ATVER}" update_feature_remote ${MAIN_SITE} org.eclipse.cdt.autotools.feature.group ${ATVER} #TM Terminal (was RSE) related -echo -e "\nPlease wait. Installing TM.TERMINAL.FEATURE.FEATURE.GROUP" TMTERMVER="4.3.0" +echo -e "\nPlease wait. Installing TM.TERMINAL.FEATURE.FEATURE.GROUP ${TMTERMVER}" update_feature_remote ${MAIN_SITE} org.eclipse.tm.terminal.feature.feature.group ${TMTERMVER} -echo -e "\nPlease wait. Installing TM.TERMINAL.VIEW.RSE.FEATURE.GROUP" TMTERMVIEWRSEVER="4.3.0" +echo -e "\nPlease wait. Installing TM.TERMINAL.VIEW.RSE.FEATURE.GROUP ${TMTERMVIEWRSEVER}" update_feature_remote ${MAIN_SITE} org.eclipse.tm.terminal.view.rse.feature.feature.group ${TMTERMVIEWRSEVER} -echo -e "\nPlease wait. Installing TM.TERMINAL.CONTROL.FEATURE.GROUP" TMCONTROLVER="4.3.0" +echo -e "\nPlease wait. Installing TM.TERMINAL.CONTROL.FEATURE.GROUP ${TMCONTROLVER}" update_feature_remote ${MAIN_SITE} org.eclipse.tm.terminal.control.feature.feature.group ${TMCONTROLVER} #RSE_SDK -echo -e "\nPlease wait. Installing RSE.SDK.FEATURE.GROUP" RSESDKVER="3.7.0" +echo -e "\nPlease wait. Installing RSE.SDK.FEATURE.GROUP ${RSESDKVER}" update_feature_remote ${TM_SITE} org.eclipse.rse.sdk.feature.group ${RSESDKVER} #echo -e "\nSkipping RSE.SDK.FEATURE.GROUP" #RSE_TERMINALS -echo -e "\nPlease wait. Installing RSE.TERMINALS.FEATURE.GROUP" RSETERMVER="3.8.0" +echo -e "\nPlease wait. Installing RSE.TERMINALS.FEATURE.GROUP ${RSETERMVER}" update_feature_remote ${TM_SITE} org.eclipse.rse.terminals.feature.group ${RSETERMVER} #echo -e "\nSkipping RSE.TERMINALS.FEATURE.GROUP" #Lttng2 TMF_CTF_REL="3.2.0" -echo -e "\nPlease wait. Installing TRACECOMPASS.LTTNG2.UST.FEATURE.GROUP" +echo -e "\nPlease wait. Installing TRACECOMPASS.LTTNG2.UST.FEATURE.GROUP ${TMF_CTF_REL}" update_feature_remote ${MAIN_SITE} org.eclipse.tracecompass.lttng2.ust.feature.group ${TMF_CTF_REL} -echo -e "\nPlease wait. Installing OSGI.COMPATIBILITY.PLUGINS.FEATURE.FEATURE.GROUP" COMPAT_VER="1.1.1" +echo -e "\nPlease wait. Installing OSGI.COMPATIBILITY.PLUGINS.FEATURE.FEATURE.GROUP ${COMPAT_VER}" update_feature_remote ${UPDATE_SITE} org.eclipse.osgi.compatibility.plugins.feature.feature.group ${COMPAT_VER} echo -e "\nYour build environment is successfully created." -- 2.13.6