2011-06-01 08:05:09 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-07-09 23:21:11 +02:00
|
|
|
function print_usage_and_exit() {
|
2019-09-25 13:40:52 +02:00
|
|
|
echo "Usage: create-tar.sh tar_stamps"
|
2019-07-09 23:21:11 +02:00
|
|
|
echo ""
|
2019-09-25 13:40:52 +02:00
|
|
|
echo "Where tar_stamps should look like this:"
|
2019-07-09 23:21:11 +02:00
|
|
|
echo ""
|
|
|
|
cat << EOF
|
|
|
|
# Node ID: 64ee63facd4ff96b3e8590cff559d7e97ac6b061
|
|
|
|
PRODUCT="firefox" # "firefox" or "thunderbird"
|
|
|
|
CHANNEL="esr60"
|
|
|
|
VERSION="60.7.0"
|
|
|
|
VERSION_SUFFIX="esr"
|
2019-09-25 13:40:52 +02:00
|
|
|
RELEASE_TAG="" # Needs only to be set if no tar-ball can be downloaded
|
2019-07-09 23:21:11 +02:00
|
|
|
PREV_VERSION="60.6.3" # Prev. version only needed for locales (leave empty to force l10n-generation)
|
|
|
|
PREV_VERSION_SUFFIX="esr"
|
2020-01-08 12:59:18 +01:00
|
|
|
#SKIP_LOCALES="" # Uncomment to skip l10n-generation
|
2019-07-09 23:21:11 +02:00
|
|
|
EOF
|
2016-04-27 09:09:13 +02:00
|
|
|
|
2019-07-09 23:21:11 +02:00
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
if [ $# -ne 1 ]; then
|
|
|
|
print_usage_and_exit
|
|
|
|
fi
|
|
|
|
|
2019-09-25 13:40:52 +02:00
|
|
|
# Sourcing the given tar_stamps-file to have the variables available
|
- Mozilla Firefox 71.0
* Improvements to Lockwise, our integrated password manager
* More information about Enhanced Tracking Protection in action
* Native MP3 decoding on Windows, Linux, and macOS
* Configuration page (about:config) reimplemented in HTML
* New kiosk mode functionality, which allows maximum screen space
for customer-facing displays
MFSA 2019-36
* CVE-2019-11756 (bmo#1508776)
Use-after-free of SFTKSession object
* CVE-2019-17008 (bmo#1546331)
Use-after-free in worker destruction
* CVE-2019-13722 (bmo#1580156) (Windows only)
Stack corruption due to incorrect number of arguments in WebRTC code
* CVE-2019-17014 (bmo#1322864)
Dragging and dropping a cross-origin resource, incorrectly loaded
as an image, could result in information disclosure
* CVE-2019-17010 (bmo#1581084)
Use-after-free when performing device orientation checks
* CVE-2019-17005 (bmo#1584170)
Buffer overflow in plain text serializer
* CVE-2019-17011 (bmo#1591334)
Use-after-free when retrieving a document in antitracking
* CVE-2019-17012 (bmo#1449736, bmo#1533957, bmo#1560667, bmo#1567209
bmo#1580288, bmo#1585760, bmo#1592502)
Memory safety bugs fixed in Firefox 71 and Firefox ESR 68.3
* CVE-2019-17013 (bmo#1298509, bmo#1472328, bmo#1577439, bmo#1577937
bmo#1580320, bmo#1584195, bmo#1585106, bmo#1586293, bmo#1593865
bmo#1594181)
Memory safety bugs fixed in Firefox 71
OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=789
2019-12-09 08:58:52 +01:00
|
|
|
TAR_STAMP="$1"
|
|
|
|
source "$TAR_STAMP" || print_usage_and_exit
|
2019-07-09 23:21:11 +02:00
|
|
|
|
|
|
|
# Internal variables
|
2011-11-09 13:04:11 +01:00
|
|
|
BRANCH="releases/mozilla-$CHANNEL"
|
2019-07-09 23:21:11 +02:00
|
|
|
if [ "$PRODUCT" = "firefox" ]; then
|
|
|
|
LOCALE_FILE="firefox-$VERSION/browser/locales/l10n-changesets.json"
|
|
|
|
else
|
|
|
|
LOCALE_FILE="thunderbird-$VERSION/comm/mail/locales/l10n-changesets.json"
|
|
|
|
fi
|
|
|
|
|
|
|
|
SOURCE_TARBALL="$PRODUCT-$VERSION$VERSION_SUFFIX.source.tar.xz"
|
2022-04-05 22:51:21 +02:00
|
|
|
PREV_SOURCE_TARBALL="$PRODUCT-$PREV_VERSION$PREV_VERSION_SUFFIX.source.tar.xz"
|
2019-07-09 23:21:11 +02:00
|
|
|
FTP_URL="https://ftp.mozilla.org/pub/$PRODUCT/releases/$VERSION$VERSION_SUFFIX/source"
|
- Mozilla Firefox 71.0
* Improvements to Lockwise, our integrated password manager
* More information about Enhanced Tracking Protection in action
* Native MP3 decoding on Windows, Linux, and macOS
* Configuration page (about:config) reimplemented in HTML
* New kiosk mode functionality, which allows maximum screen space
for customer-facing displays
MFSA 2019-36
* CVE-2019-11756 (bmo#1508776)
Use-after-free of SFTKSession object
* CVE-2019-17008 (bmo#1546331)
Use-after-free in worker destruction
* CVE-2019-13722 (bmo#1580156) (Windows only)
Stack corruption due to incorrect number of arguments in WebRTC code
* CVE-2019-17014 (bmo#1322864)
Dragging and dropping a cross-origin resource, incorrectly loaded
as an image, could result in information disclosure
* CVE-2019-17010 (bmo#1581084)
Use-after-free when performing device orientation checks
* CVE-2019-17005 (bmo#1584170)
Buffer overflow in plain text serializer
* CVE-2019-17011 (bmo#1591334)
Use-after-free when retrieving a document in antitracking
* CVE-2019-17012 (bmo#1449736, bmo#1533957, bmo#1560667, bmo#1567209
bmo#1580288, bmo#1585760, bmo#1592502)
Memory safety bugs fixed in Firefox 71 and Firefox ESR 68.3
* CVE-2019-17013 (bmo#1298509, bmo#1472328, bmo#1577439, bmo#1577937
bmo#1580320, bmo#1584195, bmo#1585106, bmo#1586293, bmo#1593865
bmo#1594181)
Memory safety bugs fixed in Firefox 71
OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=789
2019-12-09 08:58:52 +01:00
|
|
|
FTP_CANDIDATES_BASE_URL="https://ftp.mozilla.org/pub/$PRODUCT/candidates"
|
2019-07-09 23:21:11 +02:00
|
|
|
# Make first letter of PRODCUT upper case
|
|
|
|
PRODUCT_CAP="${PRODUCT^}"
|
|
|
|
LOCALES_URL="https://product-details.mozilla.org/1.0/l10n/$PRODUCT_CAP"
|
- Mozilla Firefox 71.0
* Improvements to Lockwise, our integrated password manager
* More information about Enhanced Tracking Protection in action
* Native MP3 decoding on Windows, Linux, and macOS
* Configuration page (about:config) reimplemented in HTML
* New kiosk mode functionality, which allows maximum screen space
for customer-facing displays
MFSA 2019-36
* CVE-2019-11756 (bmo#1508776)
Use-after-free of SFTKSession object
* CVE-2019-17008 (bmo#1546331)
Use-after-free in worker destruction
* CVE-2019-13722 (bmo#1580156) (Windows only)
Stack corruption due to incorrect number of arguments in WebRTC code
* CVE-2019-17014 (bmo#1322864)
Dragging and dropping a cross-origin resource, incorrectly loaded
as an image, could result in information disclosure
* CVE-2019-17010 (bmo#1581084)
Use-after-free when performing device orientation checks
* CVE-2019-17005 (bmo#1584170)
Buffer overflow in plain text serializer
* CVE-2019-17011 (bmo#1591334)
Use-after-free when retrieving a document in antitracking
* CVE-2019-17012 (bmo#1449736, bmo#1533957, bmo#1560667, bmo#1567209
bmo#1580288, bmo#1585760, bmo#1592502)
Memory safety bugs fixed in Firefox 71 and Firefox ESR 68.3
* CVE-2019-17013 (bmo#1298509, bmo#1472328, bmo#1577439, bmo#1577937
bmo#1580320, bmo#1584195, bmo#1585106, bmo#1586293, bmo#1593865
bmo#1594181)
Memory safety bugs fixed in Firefox 71
OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=789
2019-12-09 08:58:52 +01:00
|
|
|
PRODUCT_URL="https://product-details.mozilla.org/1.0/$PRODUCT.json"
|
2019-07-09 23:21:11 +02:00
|
|
|
# Exit script on CTRL+C
|
|
|
|
trap "exit" INT
|
|
|
|
|
- Mozilla Firefox 71.0
* Improvements to Lockwise, our integrated password manager
* More information about Enhanced Tracking Protection in action
* Native MP3 decoding on Windows, Linux, and macOS
* Configuration page (about:config) reimplemented in HTML
* New kiosk mode functionality, which allows maximum screen space
for customer-facing displays
MFSA 2019-36
* CVE-2019-11756 (bmo#1508776)
Use-after-free of SFTKSession object
* CVE-2019-17008 (bmo#1546331)
Use-after-free in worker destruction
* CVE-2019-13722 (bmo#1580156) (Windows only)
Stack corruption due to incorrect number of arguments in WebRTC code
* CVE-2019-17014 (bmo#1322864)
Dragging and dropping a cross-origin resource, incorrectly loaded
as an image, could result in information disclosure
* CVE-2019-17010 (bmo#1581084)
Use-after-free when performing device orientation checks
* CVE-2019-17005 (bmo#1584170)
Buffer overflow in plain text serializer
* CVE-2019-17011 (bmo#1591334)
Use-after-free when retrieving a document in antitracking
* CVE-2019-17012 (bmo#1449736, bmo#1533957, bmo#1560667, bmo#1567209
bmo#1580288, bmo#1585760, bmo#1592502)
Memory safety bugs fixed in Firefox 71 and Firefox ESR 68.3
* CVE-2019-17013 (bmo#1298509, bmo#1472328, bmo#1577439, bmo#1577937
bmo#1580320, bmo#1584195, bmo#1585106, bmo#1586293, bmo#1593865
bmo#1594181)
Memory safety bugs fixed in Firefox 71
OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=789
2019-12-09 08:58:52 +01:00
|
|
|
function get_ftp_candidates_url() {
|
|
|
|
VERSION_WITH_SUFFIX="$1"
|
|
|
|
echo "$FTP_CANDIDATES_BASE_URL/$VERSION_WITH_SUFFIX-candidates"
|
|
|
|
}
|
|
|
|
|
2019-07-09 23:21:11 +02:00
|
|
|
function check_tarball_source () {
|
|
|
|
TARBALL=$1
|
|
|
|
# Print out what is going to be done:
|
|
|
|
if [ -e $TARBALL ]; then
|
|
|
|
echo "Reuse existing file"
|
|
|
|
elif wget --spider $FTP_URL/$TARBALL 2> /dev/null; then
|
|
|
|
echo "Download file"
|
|
|
|
else
|
|
|
|
echo "Mercurial checkout"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
function ask_cont_abort_question() {
|
|
|
|
while true; do
|
|
|
|
read -p "$1 [(c)ontinue/(a)bort] " ca
|
|
|
|
case $ca in
|
|
|
|
[Cc]* ) return 0 ;;
|
|
|
|
[Aa]* ) return 1 ;;
|
|
|
|
* ) echo "Please answer c or a.";;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
function check_for_binary() {
|
|
|
|
if ! test -x $1; then
|
|
|
|
echo "$1 is missing: execute zypper in $2"
|
|
|
|
exit 5
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
- Mozilla Firefox 71.0
* Improvements to Lockwise, our integrated password manager
* More information about Enhanced Tracking Protection in action
* Native MP3 decoding on Windows, Linux, and macOS
* Configuration page (about:config) reimplemented in HTML
* New kiosk mode functionality, which allows maximum screen space
for customer-facing displays
MFSA 2019-36
* CVE-2019-11756 (bmo#1508776)
Use-after-free of SFTKSession object
* CVE-2019-17008 (bmo#1546331)
Use-after-free in worker destruction
* CVE-2019-13722 (bmo#1580156) (Windows only)
Stack corruption due to incorrect number of arguments in WebRTC code
* CVE-2019-17014 (bmo#1322864)
Dragging and dropping a cross-origin resource, incorrectly loaded
as an image, could result in information disclosure
* CVE-2019-17010 (bmo#1581084)
Use-after-free when performing device orientation checks
* CVE-2019-17005 (bmo#1584170)
Buffer overflow in plain text serializer
* CVE-2019-17011 (bmo#1591334)
Use-after-free when retrieving a document in antitracking
* CVE-2019-17012 (bmo#1449736, bmo#1533957, bmo#1560667, bmo#1567209
bmo#1580288, bmo#1585760, bmo#1592502)
Memory safety bugs fixed in Firefox 71 and Firefox ESR 68.3
* CVE-2019-17013 (bmo#1298509, bmo#1472328, bmo#1577439, bmo#1577937
bmo#1580320, bmo#1584195, bmo#1585106, bmo#1586293, bmo#1593865
bmo#1594181)
Memory safety bugs fixed in Firefox 71
OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=789
2019-12-09 08:58:52 +01:00
|
|
|
function get_source_stamp() {
|
|
|
|
BUILD_ID="$1"
|
|
|
|
FTP_CANDIDATES_BASE_URL=$(get_ftp_candidates_url $VERSION$VERSION_SUFFIX)
|
|
|
|
FTP_CANDIDATES_JSON_SUFFIX="${BUILD_ID}/linux-x86_64/en-US/$PRODUCT-$VERSION$VERSION_SUFFIX.json"
|
|
|
|
BUILD_JSON=$(curl --silent --fail "$FTP_CANDIDATES_BASE_URL/$FTP_CANDIDATES_JSON_SUFFIX") || return 1;
|
|
|
|
REV=$(echo "$BUILD_JSON" | jq .moz_source_stamp)
|
|
|
|
SOURCE_REPO=$(echo "$BUILD_JSON" | jq .moz_source_repo)
|
|
|
|
TIMESTAMP=$(echo "$BUILD_JSON" | jq .buildid)
|
|
|
|
echo "Extending $TAR_STAMP with:"
|
|
|
|
echo "RELEASE_REPO=${SOURCE_REPO}"
|
|
|
|
echo "RELEASE_TAG=${REV}"
|
|
|
|
echo "RELEASE_TIMESTAMP=${TIMESTAMP}"
|
|
|
|
# We "remove and add" instead of "replace" in case the entries are not there yet
|
|
|
|
# Removing the old RELEASE_-tags
|
|
|
|
sed -i "/RELEASE_\(TAG\|REPO\|TIMESTAMP\)=.*/d" "$TAR_STAMP"
|
|
|
|
# Appending the new
|
|
|
|
echo "RELEASE_REPO=$SOURCE_REPO" >> "$TAR_STAMP"
|
|
|
|
echo "RELEASE_TAG=$REV" >> "$TAR_STAMP"
|
|
|
|
echo "RELEASE_TIMESTAMP=$TIMESTAMP" >> "$TAR_STAMP"
|
|
|
|
}
|
2019-07-09 23:21:11 +02:00
|
|
|
|
- Mozilla Firefox 71.0
* Improvements to Lockwise, our integrated password manager
* More information about Enhanced Tracking Protection in action
* Native MP3 decoding on Windows, Linux, and macOS
* Configuration page (about:config) reimplemented in HTML
* New kiosk mode functionality, which allows maximum screen space
for customer-facing displays
MFSA 2019-36
* CVE-2019-11756 (bmo#1508776)
Use-after-free of SFTKSession object
* CVE-2019-17008 (bmo#1546331)
Use-after-free in worker destruction
* CVE-2019-13722 (bmo#1580156) (Windows only)
Stack corruption due to incorrect number of arguments in WebRTC code
* CVE-2019-17014 (bmo#1322864)
Dragging and dropping a cross-origin resource, incorrectly loaded
as an image, could result in information disclosure
* CVE-2019-17010 (bmo#1581084)
Use-after-free when performing device orientation checks
* CVE-2019-17005 (bmo#1584170)
Buffer overflow in plain text serializer
* CVE-2019-17011 (bmo#1591334)
Use-after-free when retrieving a document in antitracking
* CVE-2019-17012 (bmo#1449736, bmo#1533957, bmo#1560667, bmo#1567209
bmo#1580288, bmo#1585760, bmo#1592502)
Memory safety bugs fixed in Firefox 71 and Firefox ESR 68.3
* CVE-2019-17013 (bmo#1298509, bmo#1472328, bmo#1577439, bmo#1577937
bmo#1580320, bmo#1584195, bmo#1585106, bmo#1586293, bmo#1593865
bmo#1594181)
Memory safety bugs fixed in Firefox 71
OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=789
2019-12-09 08:58:52 +01:00
|
|
|
function get_build_number() {
|
2019-07-09 23:21:11 +02:00
|
|
|
LAST_FOUND=""
|
- Mozilla Firefox 71.0
* Improvements to Lockwise, our integrated password manager
* More information about Enhanced Tracking Protection in action
* Native MP3 decoding on Windows, Linux, and macOS
* Configuration page (about:config) reimplemented in HTML
* New kiosk mode functionality, which allows maximum screen space
for customer-facing displays
MFSA 2019-36
* CVE-2019-11756 (bmo#1508776)
Use-after-free of SFTKSession object
* CVE-2019-17008 (bmo#1546331)
Use-after-free in worker destruction
* CVE-2019-13722 (bmo#1580156) (Windows only)
Stack corruption due to incorrect number of arguments in WebRTC code
* CVE-2019-17014 (bmo#1322864)
Dragging and dropping a cross-origin resource, incorrectly loaded
as an image, could result in information disclosure
* CVE-2019-17010 (bmo#1581084)
Use-after-free when performing device orientation checks
* CVE-2019-17005 (bmo#1584170)
Buffer overflow in plain text serializer
* CVE-2019-17011 (bmo#1591334)
Use-after-free when retrieving a document in antitracking
* CVE-2019-17012 (bmo#1449736, bmo#1533957, bmo#1560667, bmo#1567209
bmo#1580288, bmo#1585760, bmo#1592502)
Memory safety bugs fixed in Firefox 71 and Firefox ESR 68.3
* CVE-2019-17013 (bmo#1298509, bmo#1472328, bmo#1577439, bmo#1577937
bmo#1580320, bmo#1584195, bmo#1585106, bmo#1586293, bmo#1593865
bmo#1594181)
Memory safety bugs fixed in Firefox 71
OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=789
2019-12-09 08:58:52 +01:00
|
|
|
VERSION_WITH_SUFFIX="$1"
|
|
|
|
|
|
|
|
BUILD_ID=$(curl --silent "$PRODUCT_URL" | jq -e '.["releases"] | .["'$PRODUCT-$VERSION_WITH_SUFFIX'"] | .["build_number"]')
|
|
|
|
|
|
|
|
# Slow fall-back
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
echo "Build number not found in product URL, falling back to slow FTP-parsing." 1>&2
|
|
|
|
FTP_CANDIDATES_BASE_URL=$(get_ftp_candidates_url $VERSION_WITH_SUFFIX)
|
|
|
|
# Unfortunately, locales-files are not associated to releases, but to builds.
|
|
|
|
# And since we don't know which build was the final build, we grep them all from
|
|
|
|
# the candidates-page, sort them and take the last one which should be the oldest
|
|
|
|
# Error only if not even the first one exists
|
|
|
|
LAST_FOUND=$(curl --silent --fail "$FTP_CANDIDATES_BASE_URL/" | grep -o "build[0-9]*/" | sort | uniq | tail -n 1 | cut -d "/" -f 1)
|
|
|
|
else
|
|
|
|
LAST_FOUND="build$BUILD_ID"
|
|
|
|
fi
|
2019-07-19 16:43:08 +02:00
|
|
|
|
|
|
|
if [ "$LAST_FOUND" != "" ]; then
|
|
|
|
echo "$LAST_FOUND"
|
|
|
|
return 0
|
- Mozilla Firefox 71.0
* Improvements to Lockwise, our integrated password manager
* More information about Enhanced Tracking Protection in action
* Native MP3 decoding on Windows, Linux, and macOS
* Configuration page (about:config) reimplemented in HTML
* New kiosk mode functionality, which allows maximum screen space
for customer-facing displays
MFSA 2019-36
* CVE-2019-11756 (bmo#1508776)
Use-after-free of SFTKSession object
* CVE-2019-17008 (bmo#1546331)
Use-after-free in worker destruction
* CVE-2019-13722 (bmo#1580156) (Windows only)
Stack corruption due to incorrect number of arguments in WebRTC code
* CVE-2019-17014 (bmo#1322864)
Dragging and dropping a cross-origin resource, incorrectly loaded
as an image, could result in information disclosure
* CVE-2019-17010 (bmo#1581084)
Use-after-free when performing device orientation checks
* CVE-2019-17005 (bmo#1584170)
Buffer overflow in plain text serializer
* CVE-2019-17011 (bmo#1591334)
Use-after-free when retrieving a document in antitracking
* CVE-2019-17012 (bmo#1449736, bmo#1533957, bmo#1560667, bmo#1567209
bmo#1580288, bmo#1585760, bmo#1592502)
Memory safety bugs fixed in Firefox 71 and Firefox ESR 68.3
* CVE-2019-17013 (bmo#1298509, bmo#1472328, bmo#1577439, bmo#1577937
bmo#1580320, bmo#1584195, bmo#1585106, bmo#1586293, bmo#1593865
bmo#1594181)
Memory safety bugs fixed in Firefox 71
OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=789
2019-12-09 08:58:52 +01:00
|
|
|
else
|
|
|
|
echo "Error: Could not find build-number for Firefox $VERSION_WITH_SUFFIX !" 1>&2
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function locales_get() {
|
|
|
|
TMP_VERSION="$1"
|
|
|
|
BUILD_ID="$2"
|
|
|
|
URL_TO_CHECK="${LOCALES_URL}-${TMP_VERSION}"
|
|
|
|
FINAL_URL="${URL_TO_CHECK}-${BUILD_ID}.json"
|
|
|
|
if wget --quiet --spider "$FINAL_URL"; then
|
|
|
|
echo "$FINAL_URL"
|
|
|
|
return 0
|
2019-07-19 16:43:08 +02:00
|
|
|
else
|
|
|
|
echo "Error: Could not find locales-file (json) for Firefox $TMP_VERSION !" 1>&2
|
|
|
|
return 1
|
|
|
|
fi
|
2019-07-09 23:21:11 +02:00
|
|
|
}
|
|
|
|
|
2022-04-05 22:51:21 +02:00
|
|
|
function locales_parse_file() {
|
|
|
|
FILE="$1"
|
|
|
|
cat "$FILE" | python -c "import json; import sys; \
|
|
|
|
print('\n'.join(['{} {}'.format(key, value['revision']) \
|
|
|
|
for key, value in sorted(json.load(sys.stdin).items())]));"
|
|
|
|
}
|
|
|
|
|
|
|
|
function locales_parse_url() {
|
2019-07-09 23:21:11 +02:00
|
|
|
URL="$1"
|
|
|
|
curl -s "$URL" | python -c "import json; import sys; \
|
|
|
|
print('\n'.join(['{} {}'.format(key, value['changeset']) \
|
|
|
|
for key, value in sorted(json.load(sys.stdin)['locales'].items())]));"
|
|
|
|
}
|
|
|
|
|
2022-04-05 22:51:21 +02:00
|
|
|
function extract_locales_file() {
|
|
|
|
# still need to extract the locale information from the archive
|
|
|
|
echo "extract locale changesets"
|
|
|
|
tar -xf $SOURCE_TARBALL $LOCALE_FILE
|
|
|
|
}
|
|
|
|
|
2019-07-09 23:21:11 +02:00
|
|
|
function locales_unchanged() {
|
- Mozilla Firefox 71.0
* Improvements to Lockwise, our integrated password manager
* More information about Enhanced Tracking Protection in action
* Native MP3 decoding on Windows, Linux, and macOS
* Configuration page (about:config) reimplemented in HTML
* New kiosk mode functionality, which allows maximum screen space
for customer-facing displays
MFSA 2019-36
* CVE-2019-11756 (bmo#1508776)
Use-after-free of SFTKSession object
* CVE-2019-17008 (bmo#1546331)
Use-after-free in worker destruction
* CVE-2019-13722 (bmo#1580156) (Windows only)
Stack corruption due to incorrect number of arguments in WebRTC code
* CVE-2019-17014 (bmo#1322864)
Dragging and dropping a cross-origin resource, incorrectly loaded
as an image, could result in information disclosure
* CVE-2019-17010 (bmo#1581084)
Use-after-free when performing device orientation checks
* CVE-2019-17005 (bmo#1584170)
Buffer overflow in plain text serializer
* CVE-2019-17011 (bmo#1591334)
Use-after-free when retrieving a document in antitracking
* CVE-2019-17012 (bmo#1449736, bmo#1533957, bmo#1560667, bmo#1567209
bmo#1580288, bmo#1585760, bmo#1592502)
Memory safety bugs fixed in Firefox 71 and Firefox ESR 68.3
* CVE-2019-17013 (bmo#1298509, bmo#1472328, bmo#1577439, bmo#1577937
bmo#1580320, bmo#1584195, bmo#1585106, bmo#1586293, bmo#1593865
bmo#1594181)
Memory safety bugs fixed in Firefox 71
OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=789
2019-12-09 08:58:52 +01:00
|
|
|
BUILD_ID="$1"
|
|
|
|
PREV_BUILD_ID=$(get_build_number "$PREV_VERSION$PREV_VERSION_SUFFIX")
|
2019-07-09 23:21:11 +02:00
|
|
|
# If no json-file for one of the versions can be found, we say "they changed"
|
- Mozilla Firefox 71.0
* Improvements to Lockwise, our integrated password manager
* More information about Enhanced Tracking Protection in action
* Native MP3 decoding on Windows, Linux, and macOS
* Configuration page (about:config) reimplemented in HTML
* New kiosk mode functionality, which allows maximum screen space
for customer-facing displays
MFSA 2019-36
* CVE-2019-11756 (bmo#1508776)
Use-after-free of SFTKSession object
* CVE-2019-17008 (bmo#1546331)
Use-after-free in worker destruction
* CVE-2019-13722 (bmo#1580156) (Windows only)
Stack corruption due to incorrect number of arguments in WebRTC code
* CVE-2019-17014 (bmo#1322864)
Dragging and dropping a cross-origin resource, incorrectly loaded
as an image, could result in information disclosure
* CVE-2019-17010 (bmo#1581084)
Use-after-free when performing device orientation checks
* CVE-2019-17005 (bmo#1584170)
Buffer overflow in plain text serializer
* CVE-2019-17011 (bmo#1591334)
Use-after-free when retrieving a document in antitracking
* CVE-2019-17012 (bmo#1449736, bmo#1533957, bmo#1560667, bmo#1567209
bmo#1580288, bmo#1585760, bmo#1592502)
Memory safety bugs fixed in Firefox 71 and Firefox ESR 68.3
* CVE-2019-17013 (bmo#1298509, bmo#1472328, bmo#1577439, bmo#1577937
bmo#1580320, bmo#1584195, bmo#1585106, bmo#1586293, bmo#1593865
bmo#1594181)
Memory safety bugs fixed in Firefox 71
OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=789
2019-12-09 08:58:52 +01:00
|
|
|
prev_url=$(locales_get "$PREV_VERSION$PREV_VERSION_SUFFIX" "$PREV_BUILD_ID") || return 1
|
2022-04-05 22:51:21 +02:00
|
|
|
prev_content=$(locales_parse_url "$prev_url") || exit 1
|
2019-07-09 23:21:11 +02:00
|
|
|
|
2022-04-05 22:51:21 +02:00
|
|
|
curr_url=$(locales_get "$VERSION$VERSION_SUFFIX" "$BUILD_ID")
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
# We did not find a locales file upstream on the servers
|
|
|
|
if [ -e $SOURCE_TARBALL ]; then
|
|
|
|
# We can find out what the locales are, by extracting the json-file from the tar-ball
|
|
|
|
# instead of getting it from the server
|
|
|
|
extract_locales_file || return 1
|
|
|
|
curr_content=$(locales_parse_file "$LOCALE_FILE") || exit 1
|
|
|
|
else
|
|
|
|
# We can't know what the locales are in the current version
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
curr_content=$(locales_parse_url "$curr_url") || exit 1
|
|
|
|
fi
|
2019-07-09 23:21:11 +02:00
|
|
|
|
|
|
|
diff -y --suppress-common-lines -d <(echo "$prev_content") <(echo "$curr_content")
|
|
|
|
}
|
2018-03-13 20:46:06 +01:00
|
|
|
|
|
|
|
# check required tools
|
2019-07-09 23:21:11 +02:00
|
|
|
check_for_binary /usr/bin/hg "mercurial"
|
|
|
|
check_for_binary /usr/bin/jq "jq"
|
|
|
|
which python > /dev/null || exit 1
|
2018-03-13 20:46:06 +01:00
|
|
|
|
2017-07-14 09:51:30 +02:00
|
|
|
# use parallel compression, if available
|
|
|
|
compression='-J'
|
|
|
|
pixz -h > /dev/null 2>&1
|
|
|
|
if (($? != 127)); then
|
|
|
|
compression='-Ipixz'
|
|
|
|
fi
|
|
|
|
|
- Mozilla Firefox 71.0
* Improvements to Lockwise, our integrated password manager
* More information about Enhanced Tracking Protection in action
* Native MP3 decoding on Windows, Linux, and macOS
* Configuration page (about:config) reimplemented in HTML
* New kiosk mode functionality, which allows maximum screen space
for customer-facing displays
MFSA 2019-36
* CVE-2019-11756 (bmo#1508776)
Use-after-free of SFTKSession object
* CVE-2019-17008 (bmo#1546331)
Use-after-free in worker destruction
* CVE-2019-13722 (bmo#1580156) (Windows only)
Stack corruption due to incorrect number of arguments in WebRTC code
* CVE-2019-17014 (bmo#1322864)
Dragging and dropping a cross-origin resource, incorrectly loaded
as an image, could result in information disclosure
* CVE-2019-17010 (bmo#1581084)
Use-after-free when performing device orientation checks
* CVE-2019-17005 (bmo#1584170)
Buffer overflow in plain text serializer
* CVE-2019-17011 (bmo#1591334)
Use-after-free when retrieving a document in antitracking
* CVE-2019-17012 (bmo#1449736, bmo#1533957, bmo#1560667, bmo#1567209
bmo#1580288, bmo#1585760, bmo#1592502)
Memory safety bugs fixed in Firefox 71 and Firefox ESR 68.3
* CVE-2019-17013 (bmo#1298509, bmo#1472328, bmo#1577439, bmo#1577937
bmo#1580320, bmo#1584195, bmo#1585106, bmo#1586293, bmo#1593865
bmo#1594181)
Memory safety bugs fixed in Firefox 71
OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=789
2019-12-09 08:58:52 +01:00
|
|
|
# Get ID
|
|
|
|
BUILD_ID=$(get_build_number "$VERSION$VERSION_SUFFIX")
|
|
|
|
|
2019-07-09 23:21:11 +02:00
|
|
|
if [ -z ${SKIP_LOCALES+x} ]; then
|
2020-06-30 13:39:58 +02:00
|
|
|
if [ "$PREV_VERSION" != "" ] && locales_unchanged "$BUILD_ID"; then
|
2019-07-09 23:21:11 +02:00
|
|
|
printf "%-40s: Did not change. Skipping.\n" "locales"
|
|
|
|
LOCALES_CHANGED=0
|
|
|
|
else
|
|
|
|
printf "%-40s: Need to download.\n" "locales"
|
|
|
|
LOCALES_CHANGED=1
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
printf "%-40s: User forced skip (SKIP_LOCALES set)\n" "locales"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Check what is going to be done and ask for consent
|
|
|
|
for ff in $SOURCE_TARBALL $SOURCE_TARBALL.asc; do
|
|
|
|
printf "%-40s: %s\n" $ff "$(check_tarball_source $ff)"
|
|
|
|
done
|
|
|
|
|
|
|
|
$(ask_cont_abort_question "Is this ok?") || exit 0
|
|
|
|
|
|
|
|
# Try to download tar-ball from officiall mozilla-mirror
|
|
|
|
if [ ! -e $SOURCE_TARBALL ]; then
|
|
|
|
wget https://ftp.mozilla.org/pub/$PRODUCT/releases/$VERSION$VERSION_SUFFIX/source/$SOURCE_TARBALL
|
|
|
|
fi
|
|
|
|
# including signature
|
|
|
|
if [ ! -e $SOURCE_TARBALL.asc ]; then
|
|
|
|
wget https://ftp.mozilla.org/pub/$PRODUCT/releases/$VERSION$VERSION_SUFFIX/source/$SOURCE_TARBALL.asc
|
|
|
|
fi
|
|
|
|
|
2018-06-25 22:56:47 +02:00
|
|
|
# we might have an upstream archive already and can skip the checkout
|
2019-07-09 23:21:11 +02:00
|
|
|
if [ -e $SOURCE_TARBALL ]; then
|
2019-07-19 16:43:08 +02:00
|
|
|
if [ -z ${SKIP_LOCALES+x} ] && [ $LOCALES_CHANGED -ne 0 ]; then
|
2022-04-05 22:51:21 +02:00
|
|
|
extract_locales_file
|
2019-07-09 23:21:11 +02:00
|
|
|
fi
|
- Mozilla Firefox 71.0
* Improvements to Lockwise, our integrated password manager
* More information about Enhanced Tracking Protection in action
* Native MP3 decoding on Windows, Linux, and macOS
* Configuration page (about:config) reimplemented in HTML
* New kiosk mode functionality, which allows maximum screen space
for customer-facing displays
MFSA 2019-36
* CVE-2019-11756 (bmo#1508776)
Use-after-free of SFTKSession object
* CVE-2019-17008 (bmo#1546331)
Use-after-free in worker destruction
* CVE-2019-13722 (bmo#1580156) (Windows only)
Stack corruption due to incorrect number of arguments in WebRTC code
* CVE-2019-17014 (bmo#1322864)
Dragging and dropping a cross-origin resource, incorrectly loaded
as an image, could result in information disclosure
* CVE-2019-17010 (bmo#1581084)
Use-after-free when performing device orientation checks
* CVE-2019-17005 (bmo#1584170)
Buffer overflow in plain text serializer
* CVE-2019-17011 (bmo#1591334)
Use-after-free when retrieving a document in antitracking
* CVE-2019-17012 (bmo#1449736, bmo#1533957, bmo#1560667, bmo#1567209
bmo#1580288, bmo#1585760, bmo#1592502)
Memory safety bugs fixed in Firefox 71 and Firefox ESR 68.3
* CVE-2019-17013 (bmo#1298509, bmo#1472328, bmo#1577439, bmo#1577937
bmo#1580320, bmo#1584195, bmo#1585106, bmo#1586293, bmo#1593865
bmo#1594181)
Memory safety bugs fixed in Firefox 71
OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=789
2019-12-09 08:58:52 +01:00
|
|
|
get_source_stamp "$BUILD_ID"
|
2018-06-25 22:56:47 +02:00
|
|
|
else
|
2019-07-09 23:21:11 +02:00
|
|
|
# We are working on a version that is not yet published on the mozilla mirror
|
|
|
|
# so we have to actually check out the repo
|
|
|
|
|
2018-06-25 22:56:47 +02:00
|
|
|
# mozilla
|
2019-07-09 23:21:11 +02:00
|
|
|
if [ -d $PRODUCT-$VERSION ]; then
|
|
|
|
pushd $PRODUCT-$VERSION || exit 1
|
2018-06-25 22:56:47 +02:00
|
|
|
_repourl=$(hg paths)
|
|
|
|
case "$_repourl" in
|
|
|
|
*$BRANCH*)
|
|
|
|
echo "updating previous tree"
|
|
|
|
hg pull
|
2019-07-09 23:21:11 +02:00
|
|
|
popd || exit 1
|
2018-06-25 22:56:47 +02:00
|
|
|
;;
|
|
|
|
* )
|
|
|
|
echo "removing obsolete tree"
|
2019-07-09 23:21:11 +02:00
|
|
|
popd || exit 1
|
|
|
|
rm -rf $PRODUCT-$VERSION
|
2018-06-25 22:56:47 +02:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
2019-07-09 23:21:11 +02:00
|
|
|
if [ ! -d $PRODUCT-$VERSION ]; then
|
2018-06-25 22:56:47 +02:00
|
|
|
echo "cloning new $BRANCH..."
|
2021-02-24 12:49:39 +01:00
|
|
|
hg clone https://hg.mozilla.org/$BRANCH $PRODUCT-$VERSION
|
2019-07-09 23:21:11 +02:00
|
|
|
if [ "$PRODUCT" = "thunderbird" ]; then
|
2021-02-24 12:49:39 +01:00
|
|
|
hg clone https://hg.mozilla.org/releases/comm-$CHANNEL $PRODUCT-$VERSION/comm
|
2019-07-09 23:21:11 +02:00
|
|
|
fi
|
2018-06-25 22:56:47 +02:00
|
|
|
fi
|
2019-07-09 23:21:11 +02:00
|
|
|
pushd $PRODUCT-$VERSION || exit 1
|
2019-09-25 13:40:52 +02:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2019-07-09 23:21:11 +02:00
|
|
|
hg update --check $FF_RELEASE_TAG
|
|
|
|
[ "$FF_RELEASE_TAG" == "default" ] || hg update -r $FF_RELEASE_TAG
|
2018-06-25 22:56:47 +02:00
|
|
|
# get repo and source stamp
|
- Mozilla Firefox 71.0
* Improvements to Lockwise, our integrated password manager
* More information about Enhanced Tracking Protection in action
* Native MP3 decoding on Windows, Linux, and macOS
* Configuration page (about:config) reimplemented in HTML
* New kiosk mode functionality, which allows maximum screen space
for customer-facing displays
MFSA 2019-36
* CVE-2019-11756 (bmo#1508776)
Use-after-free of SFTKSession object
* CVE-2019-17008 (bmo#1546331)
Use-after-free in worker destruction
* CVE-2019-13722 (bmo#1580156) (Windows only)
Stack corruption due to incorrect number of arguments in WebRTC code
* CVE-2019-17014 (bmo#1322864)
Dragging and dropping a cross-origin resource, incorrectly loaded
as an image, could result in information disclosure
* CVE-2019-17010 (bmo#1581084)
Use-after-free when performing device orientation checks
* CVE-2019-17005 (bmo#1584170)
Buffer overflow in plain text serializer
* CVE-2019-17011 (bmo#1591334)
Use-after-free when retrieving a document in antitracking
* CVE-2019-17012 (bmo#1449736, bmo#1533957, bmo#1560667, bmo#1567209
bmo#1580288, bmo#1585760, bmo#1592502)
Memory safety bugs fixed in Firefox 71 and Firefox ESR 68.3
* CVE-2019-17013 (bmo#1298509, bmo#1472328, bmo#1577439, bmo#1577937
bmo#1580320, bmo#1584195, bmo#1585106, bmo#1586293, bmo#1593865
bmo#1594181)
Memory safety bugs fixed in Firefox 71
OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=789
2019-12-09 08:58:52 +01:00
|
|
|
REV=$(hg -R . parent --template="{node|short}\n")
|
2021-02-24 12:49:39 +01:00
|
|
|
SOURCE_REPO=$(hg showconfig paths.default 2>/dev/null | head -n1 | sed -e "s/^ssh:/https:/")
|
- Mozilla Firefox 71.0
* Improvements to Lockwise, our integrated password manager
* More information about Enhanced Tracking Protection in action
* Native MP3 decoding on Windows, Linux, and macOS
* Configuration page (about:config) reimplemented in HTML
* New kiosk mode functionality, which allows maximum screen space
for customer-facing displays
MFSA 2019-36
* CVE-2019-11756 (bmo#1508776)
Use-after-free of SFTKSession object
* CVE-2019-17008 (bmo#1546331)
Use-after-free in worker destruction
* CVE-2019-13722 (bmo#1580156) (Windows only)
Stack corruption due to incorrect number of arguments in WebRTC code
* CVE-2019-17014 (bmo#1322864)
Dragging and dropping a cross-origin resource, incorrectly loaded
as an image, could result in information disclosure
* CVE-2019-17010 (bmo#1581084)
Use-after-free when performing device orientation checks
* CVE-2019-17005 (bmo#1584170)
Buffer overflow in plain text serializer
* CVE-2019-17011 (bmo#1591334)
Use-after-free when retrieving a document in antitracking
* CVE-2019-17012 (bmo#1449736, bmo#1533957, bmo#1560667, bmo#1567209
bmo#1580288, bmo#1585760, bmo#1592502)
Memory safety bugs fixed in Firefox 71 and Firefox ESR 68.3
* CVE-2019-17013 (bmo#1298509, bmo#1472328, bmo#1577439, bmo#1577937
bmo#1580320, bmo#1584195, bmo#1585106, bmo#1586293, bmo#1593865
bmo#1594181)
Memory safety bugs fixed in Firefox 71
OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=789
2019-12-09 08:58:52 +01:00
|
|
|
TIMESTAMP=$(date +%Y%m%d%H%M%S)
|
2019-07-09 23:21:11 +02:00
|
|
|
|
|
|
|
if [ "$PRODUCT" = "thunderbird" ]; then
|
|
|
|
pushd comm || exit 1
|
2019-09-25 13:40:52 +02:00
|
|
|
hg update --check $RELEASE_TAG
|
2019-07-09 23:21:11 +02:00
|
|
|
popd || exit 1
|
|
|
|
rm -rf thunderbird-${VERSION}/{,comm/}other-licenses/7zstub
|
|
|
|
fi
|
|
|
|
popd || exit 1
|
2018-06-25 22:56:47 +02:00
|
|
|
|
- Mozilla Firefox 71.0
* Improvements to Lockwise, our integrated password manager
* More information about Enhanced Tracking Protection in action
* Native MP3 decoding on Windows, Linux, and macOS
* Configuration page (about:config) reimplemented in HTML
* New kiosk mode functionality, which allows maximum screen space
for customer-facing displays
MFSA 2019-36
* CVE-2019-11756 (bmo#1508776)
Use-after-free of SFTKSession object
* CVE-2019-17008 (bmo#1546331)
Use-after-free in worker destruction
* CVE-2019-13722 (bmo#1580156) (Windows only)
Stack corruption due to incorrect number of arguments in WebRTC code
* CVE-2019-17014 (bmo#1322864)
Dragging and dropping a cross-origin resource, incorrectly loaded
as an image, could result in information disclosure
* CVE-2019-17010 (bmo#1581084)
Use-after-free when performing device orientation checks
* CVE-2019-17005 (bmo#1584170)
Buffer overflow in plain text serializer
* CVE-2019-17011 (bmo#1591334)
Use-after-free when retrieving a document in antitracking
* CVE-2019-17012 (bmo#1449736, bmo#1533957, bmo#1560667, bmo#1567209
bmo#1580288, bmo#1585760, bmo#1592502)
Memory safety bugs fixed in Firefox 71 and Firefox ESR 68.3
* CVE-2019-17013 (bmo#1298509, bmo#1472328, bmo#1577439, bmo#1577937
bmo#1580320, bmo#1584195, bmo#1585106, bmo#1586293, bmo#1593865
bmo#1594181)
Memory safety bugs fixed in Firefox 71
OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=789
2019-12-09 08:58:52 +01:00
|
|
|
echo "Extending $TAR_STAMP with:"
|
|
|
|
echo "RELEASE_REPO=${SOURCE_REPO}"
|
|
|
|
echo "RELEASE_TAG=${REV}"
|
|
|
|
echo "RELEASE_TIMESTAMP=${TIMESTAMP}"
|
|
|
|
|
|
|
|
# We "remove and add" instead of "replace" in case the entries are not there yet
|
|
|
|
# Removing the old RELEASE_-tags
|
|
|
|
sed -i "/RELEASE_\(TAG\|REPO\|TIMESTAMP\)=.*/d" "$TAR_STAMP"
|
|
|
|
# Appending the new
|
|
|
|
echo "RELEASE_REPO=$SOURCE_REPO" >> "$TAR_STAMP"
|
|
|
|
echo "RELEASE_TAG=$REV" >> "$TAR_STAMP"
|
|
|
|
echo "RELEASE_TIMESTAMP=$TIMESTAMP" >> "$TAR_STAMP"
|
|
|
|
|
2018-06-25 22:56:47 +02:00
|
|
|
echo "creating archive..."
|
2019-07-09 23:21:11 +02:00
|
|
|
tar $compression -cf $PRODUCT-$VERSION$VERSION_SUFFIX.source.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS $PRODUCT-$VERSION
|
2018-06-25 22:56:47 +02:00
|
|
|
fi
|
2011-06-01 08:05:09 +02:00
|
|
|
|
2019-07-09 23:21:11 +02:00
|
|
|
if [ ! -z ${SKIP_LOCALES+x} ]; then
|
|
|
|
echo "Skipping locales-creation."
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $LOCALES_CHANGED -ne 0 ]; then
|
|
|
|
# l10n
|
|
|
|
echo "fetching locales..."
|
|
|
|
test ! -d l10n && mkdir l10n
|
|
|
|
jq -r 'to_entries[]| "\(.key) \(.value|.revision)"' $LOCALE_FILE | \
|
|
|
|
while read locale changeset ; do
|
|
|
|
case $locale in
|
|
|
|
ja-JP-mac|en-US)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "reading changeset information for $locale"
|
|
|
|
echo "fetching $locale changeset $changeset ..."
|
|
|
|
if [ -d "l10n/$locale/.hg" ]; then
|
|
|
|
pushd "l10n/$locale" || exit 1
|
|
|
|
hg pull
|
|
|
|
popd || exit 1
|
|
|
|
else
|
2021-02-24 12:49:39 +01:00
|
|
|
hg clone "https://hg.mozilla.org/l10n-central/$locale" "l10n/$locale"
|
2019-07-09 23:21:11 +02:00
|
|
|
fi
|
2019-09-25 13:40:52 +02:00
|
|
|
[ "$RELEASE_TAG" == "default" ] || hg -R "l10n/$locale" up -C -r "$changeset"
|
2019-07-09 23:21:11 +02:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
echo "creating l10n archive..."
|
2019-07-19 16:43:08 +02:00
|
|
|
if [ "$PRODUCT" = "thunderbird" ]; then
|
2019-07-09 23:21:11 +02:00
|
|
|
TB_TAR_FLAGS="--exclude=browser --exclude=suite"
|
2019-07-19 16:43:08 +02:00
|
|
|
fi
|
2019-07-09 23:21:11 +02:00
|
|
|
tar $compression -cf l10n-$VERSION$VERSION_SUFFIX.tar.xz \
|
|
|
|
--exclude=.hgtags --exclude=.hgignore --exclude=.hg \
|
|
|
|
$TB_TAR_FLAGS \
|
|
|
|
l10n
|
2019-07-19 16:43:08 +02:00
|
|
|
elif [ -f "l10n-$PREV_VERSION$PREV_VERSION_SUFFIX.tar.xz" ]; then
|
|
|
|
# Locales did not change, but the old tar-ball is in this directory
|
|
|
|
# Simply rename it:
|
|
|
|
echo "Moving l10n-$PREV_VERSION$PREV_VERSION_SUFFIX.tar.xz to l10n-$VERSION$VERSION_SUFFIX.tar.xz"
|
|
|
|
mv "l10n-$PREV_VERSION$PREV_VERSION_SUFFIX.tar.xz" "l10n-$VERSION$VERSION_SUFFIX.tar.xz"
|
2019-07-09 23:21:11 +02:00
|
|
|
fi
|
2022-04-05 22:51:21 +02:00
|
|
|
|
|
|
|
if [ -e $PREV_SOURCE_TARBALL ]; then
|
|
|
|
echo ""
|
|
|
|
echo "Deleting old sources tarball $PREV_SOURCE_TARBALL"
|
|
|
|
$(ask_cont_abort_question "Is this ok?") || exit 0
|
|
|
|
rm "$PREV_SOURCE_TARBALL"
|
|
|
|
rm "$PREV_SOURCE_TARBALL.asc"
|
|
|
|
fi
|