bug 1332930 - fix m-b m-r m-esr periodic updates. r=rail FENNEC_52_0b2_BUILD1 FENNEC_52_0b2_RELEASE
authorAki Sasaki <asasaki@mozilla.com>
Sat, 28 Jan 2017 17:15:05 -0800
changeset 7283 5dec772a8d52
parent 7282 832aa9436615
child 7284 98e472325322
push id5423
push userasasaki@mozilla.com
push dateSun, 29 Jan 2017 01:15:09 +0000
reviewersrail
bugs1332930
bug 1332930 - fix m-b m-r m-esr periodic updates. r=rail
scripts/periodic_file_updates/periodic_file_updates.sh
--- a/scripts/periodic_file_updates/periodic_file_updates.sh
+++ b/scripts/periodic_file_updates/periodic_file_updates.sh
@@ -652,29 +652,32 @@ if [ "${REPODIR}" == "" ]; then
    REPODIR=`basename ${BRANCH}`
 fi
 
 HGREPO="https://${HGHOST}/${BRANCH}"
 HGPUSHREPO="ssh://${HGHOST}/${BRANCH}"
 MCREPO="https://${HGHOST}/mozilla-central"
 
 VERSION=$(get_version ${HGREPO})
+MAJOR_VERSION=`echo $VERSION | sed -e 's/\..*//'`
 echo "INFO: parsed version is ${VERSION}"
 if [ "${USE_MC}" == "true" ]; then
     MCVERSION=$(get_version ${MCREPO})
     echo "INFO: parsed mozilla-central version is ${MCVERSION}"
+    MAJOR_VERSION=`echo $MCVERSION | sed -e 's/\..*//'`
 fi
 
 BROWSER_ARCHIVE="${PRODUCT}-${VERSION}.en-US.${PLATFORM}.${PLATFORM_EXT}"
 TESTS_ARCHIVE="${PRODUCT}-${VERSION}.en-US.${PLATFORM}.common.tests.zip"
 if [ "${USE_MC}" == "true" ]; then
     BROWSER_ARCHIVE="${PRODUCT}-${MCVERSION}.en-US.${PLATFORM}.${PLATFORM_EXT}"
     TESTS_ARCHIVE="${PRODUCT}-${MCVERSION}.en-US.${PLATFORM}.common.tests.zip"
 fi
-if [ "${USE_TC}" == "true" ] ; then
+# Simple name builds on >=53.0.0
+if [ ${MAJOR_VERSION} -ge 53 ] ; then
     BROWSER_ARCHIVE="target.${PLATFORM_EXT}"
     TESTS_ARCHIVE="target.common.tests.zip"
 fi
 
 # Try to find hgtool if it hasn't been set.
 if [ ! -f "${HGTOOL}" ]; then
     HGTOOL=`which hgtool.py 2>/dev/null | head -n1`
 fi