MozillaFirefox/create-tar.sh
branchfirefox87
changeset 1155 b8c834aafde2
parent 1138 4ac678bd2a26
child 1173 56ecd2ae6e61
equal deleted inserted replaced
1154:71a92b4d0527 1155:b8c834aafde2
   237         ;;
   237         ;;
   238     esac
   238     esac
   239   fi
   239   fi
   240   if [ ! -d $PRODUCT-$VERSION ]; then
   240   if [ ! -d $PRODUCT-$VERSION ]; then
   241     echo "cloning new $BRANCH..."
   241     echo "cloning new $BRANCH..."
   242     hg clone http://hg.mozilla.org/$BRANCH $PRODUCT-$VERSION
   242     hg clone https://hg.mozilla.org/$BRANCH $PRODUCT-$VERSION
   243     if [ "$PRODUCT" = "thunderbird" ]; then
   243     if [ "$PRODUCT" = "thunderbird" ]; then
   244       hg clone http://hg.mozilla.org/releases/comm-$CHANNEL $PRODUCT-$VERSION/comm
   244       hg clone https://hg.mozilla.org/releases/comm-$CHANNEL $PRODUCT-$VERSION/comm
   245     fi
   245     fi
   246   fi
   246   fi
   247   pushd $PRODUCT-$VERSION || exit 1
   247   pushd $PRODUCT-$VERSION || exit 1
   248 
   248 
   249   # parse out the Firefox-release tag for this Thunderbird-checkout
   249   # parse out the Firefox-release tag for this Thunderbird-checkout
   256 
   256 
   257   hg update --check $FF_RELEASE_TAG
   257   hg update --check $FF_RELEASE_TAG
   258   [ "$FF_RELEASE_TAG" == "default" ] || hg update -r $FF_RELEASE_TAG
   258   [ "$FF_RELEASE_TAG" == "default" ] || hg update -r $FF_RELEASE_TAG
   259   # get repo and source stamp
   259   # get repo and source stamp
   260   REV=$(hg -R . parent --template="{node|short}\n")
   260   REV=$(hg -R . parent --template="{node|short}\n")
   261   SOURCE_REPO=$(hg showconfig paths.default 2>/dev/null | head -n1 | sed -e "s/^ssh:/http:/")
   261   SOURCE_REPO=$(hg showconfig paths.default 2>/dev/null | head -n1 | sed -e "s/^ssh:/https:/")
   262   TIMESTAMP=$(date +%Y%m%d%H%M%S)
   262   TIMESTAMP=$(date +%Y%m%d%H%M%S)
   263 
   263 
   264   if [ "$PRODUCT" = "thunderbird" ]; then
   264   if [ "$PRODUCT" = "thunderbird" ]; then
   265     pushd comm || exit 1
   265     pushd comm || exit 1
   266     hg update --check $RELEASE_TAG
   266     hg update --check $RELEASE_TAG
   306           if [ -d "l10n/$locale/.hg" ]; then
   306           if [ -d "l10n/$locale/.hg" ]; then
   307             pushd "l10n/$locale" || exit 1
   307             pushd "l10n/$locale" || exit 1
   308             hg pull
   308             hg pull
   309             popd || exit 1
   309             popd || exit 1
   310           else
   310           else
   311             hg clone "http://hg.mozilla.org/l10n-central/$locale" "l10n/$locale"
   311             hg clone "https://hg.mozilla.org/l10n-central/$locale" "l10n/$locale"
   312           fi
   312           fi
   313           [ "$RELEASE_TAG" == "default" ] || hg -R "l10n/$locale" up -C -r "$changeset"
   313           [ "$RELEASE_TAG" == "default" ] || hg -R "l10n/$locale" up -C -r "$changeset"
   314           ;;
   314           ;;
   315       esac
   315       esac
   316     done
   316     done