From a21dd9a5f84db866af5d9dd5ac41589a77a46ccbc7d95a2cfa05cb9703d93e3a Mon Sep 17 00:00:00 2001 From: Wolfgang Rosenauer Date: Wed, 25 Sep 2019 11:40:52 +0000 Subject: [PATCH] - update create-tar.sh to latest revision and adjusted tar_stamps OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=773 --- MozillaFirefox.changes | 1 + create-tar.sh | 24 ++++++++++++++++-------- tar_stamps | 3 +-- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/MozillaFirefox.changes b/MozillaFirefox.changes index 3794178..ea80c66 100644 --- a/MozillaFirefox.changes +++ b/MozillaFirefox.changes @@ -5,6 +5,7 @@ Wed Sep 25 11:25:17 UTC 2019 - Wolfgang Rosenauer (contributed by Bernhard Wiedemann) - Make build verbose (contributed by Martin Liška) - remove obsolete kde.js setting (boo#1151186) +- update create-tar.sh to latest revision and adjusted tar_stamps ------------------------------------------------------------------- Thu Sep 19 13:31:16 UTC 2019 - Wolfgang Rosenauer diff --git a/create-tar.sh b/create-tar.sh index 5a3cf37..59e28e7 100644 --- a/create-tar.sh +++ b/create-tar.sh @@ -1,9 +1,9 @@ #!/bin/bash function print_usage_and_exit() { - echo "Usage: create-tar.sh tar_stamp" + echo "Usage: create-tar.sh tar_stamps" echo "" - echo "Where tar_stamp should look like this:" + echo "Where tar_stamps should look like this:" echo "" cat << EOF # Node ID: 64ee63facd4ff96b3e8590cff559d7e97ac6b061 @@ -11,8 +11,7 @@ PRODUCT="firefox" # "firefox" or "thunderbird" CHANNEL="esr60" VERSION="60.7.0" VERSION_SUFFIX="esr" -FF_RELEASE_TAG="" # Needs only to be set if no tar-ball can be downloaded -TB_RELEASE_TAG="" # Only relevant for Thunderbird +RELEASE_TAG="" # Needs only to be set if no tar-ball can be downloaded PREV_VERSION="60.6.3" # Prev. version only needed for locales (leave empty to force l10n-generation) PREV_VERSION_SUFFIX="esr" #SKIP_LOCALES="" # Uncomment to skip l10n and compare-locales-generation @@ -25,7 +24,7 @@ if [ $# -ne 1 ]; then print_usage_and_exit fi -# Sourcing the given tar_stamp-file to have the variables available +# Sourcing the given tar_stamps-file to have the variables available source "$1" || print_usage_and_exit # Internal variables @@ -193,10 +192,19 @@ else echo "cloning new $BRANCH..." hg clone http://hg.mozilla.org/$BRANCH $PRODUCT-$VERSION if [ "$PRODUCT" = "thunderbird" ]; then - hg clone http://hg.mozilla.org/releases/comm-$CHANNEL thunderbird-$VERSION/comm + hg clone http://hg.mozilla.org/releases/comm-$CHANNEL $PRODUCT-$VERSION/comm fi fi pushd $PRODUCT-$VERSION || exit 1 + + # parse out the Firefox-release tag for this Thunderbird-checkout + if [ "$PRODUCT" = "thunderbird" ]; then + FF_RELEASE_TAG=$(grep ^GECKO_HEAD_REV ./comm/.gecko_rev.yml | awk -F ' ' '{print $2}') || exit 1 + echo "Parsed Firefox base ID from .gecko_rev.yml: $FF_RELEASE_TAG" + else + FF_RELEASE_TAG="$RELEASE_TAG" + fi + hg update --check $FF_RELEASE_TAG [ "$FF_RELEASE_TAG" == "default" ] || hg update -r $FF_RELEASE_TAG # get repo and source stamp @@ -207,7 +215,7 @@ else if [ "$PRODUCT" = "thunderbird" ]; then pushd comm || exit 1 - hg update --check $TB_RELEASE_TAG + hg update --check $RELEASE_TAG popd || exit 1 rm -rf thunderbird-${VERSION}/{,comm/}other-licenses/7zstub fi @@ -241,7 +249,7 @@ if [ $LOCALES_CHANGED -ne 0 ]; then else hg clone "http://hg.mozilla.org/l10n-central/$locale" "l10n/$locale" fi - [ "$FF_RELEASE_TAG" == "default" ] || hg -R "l10n/$locale" up -C -r "$changeset" + [ "$RELEASE_TAG" == "default" ] || hg -R "l10n/$locale" up -C -r "$changeset" ;; esac done diff --git a/tar_stamps b/tar_stamps index 0faff57..c8da06b 100644 --- a/tar_stamps +++ b/tar_stamps @@ -2,8 +2,7 @@ PRODUCT="firefox" CHANNEL="release" VERSION="69.0.1" VERSION_SUFFIX="" -FF_RELEASE_TAG="bf6ea738ba073f1a70554799a749235136afc93a" -TB_RELEASE_TAG="" +RELEASE_TAG="bf6ea738ba073f1a70554799a749235136afc93a" PREV_VERSION="" PREV_VERSION_SUFFIX="" #SKIP_LOCALES="" # Uncomment to skip l10n and compare-locales-generation