2011-06-01 08:05:09 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-04-27 09:09:13 +02:00
|
|
|
# TODO
|
|
|
|
# http://ftp.mozilla.org/pub/firefox/candidates/46.0-candidates/build5/linux-x86_64/en-US/firefox-46.0.json
|
|
|
|
# "moz_source_stamp": "078baf501b55eaa47f3b189fda4dd28dae1fa257"
|
|
|
|
# http://ftp.mozilla.org/pub/firefox/candidates/46.0-candidates/build5/l10n_changesets.txt
|
|
|
|
|
2014-09-22 18:35:40 +02:00
|
|
|
CHANNEL="release"
|
2011-11-09 13:04:11 +01:00
|
|
|
BRANCH="releases/mozilla-$CHANNEL"
|
- update to Firefox 47.0 (boo#983549)
* Enable VP9 video codec for users with fast machines
* Embedded YouTube videos now play with HTML5 video if Flash is
not installed
* View and search open tabs from your smartphone or another
computer in a sidebar
* Allow no-cache on back/forward navigations for https resources
security fixes:
* MFSA 2016-49/CVE-2016-2815/CVE-2016-2818
(boo#983638)
(bmo#1241896, bmo#1242798, bmo#1243466, bmo#1245743,
bmo#1264300, bmo#1271037, bmo#1234147, bmo#1256493,
bmo#1256739, bmo#1256968, bmo#1261230, bmo#1261752,
bmo#1263384, bmo#1264575, bmo#1265577, bmo#1267130,
bmo#1269729, bmo#1273202, bmo#1273701)
Miscellaneous memory safety hazards (rv:47.0 / rv:45.2)
* MFSA 2016-50/CVE-2016-2819 (boo#983655) (bmo#1270381)
Buffer overflow parsing HTML5 fragments
* MFSA 2016-51/CVE-2016-2821 (bsc#983653) (bmo#1271460)
Use-after-free deleting tables from a contenteditable document
* MFSA 2016-52/CVE-2016-2822 (boo#983652) (bmo#1273129)
Addressbar spoofing though the SELECT element
* MFSA 2016-53/CVE-2016-2824 (boo#983651) (bmo#1248580)
Out-of-bounds write with WebGL shader
* MFSA 2016-54/CVE-2016-2825 (boo#983649) (bmo#1193093)
Partial same-origin-policy through setting location.host
through data URI
* MFSA 2016-56/CVE-2016-2828 (boo#983646) (bmo#1223810)
Use-after-free when textures are used in WebGL operations
after recycle pool destruction
OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=518
2016-06-08 14:26:29 +02:00
|
|
|
RELEASE_TAG="FIREFOX_47_0_RELEASE"
|
|
|
|
VERSION="47.0"
|
2011-06-01 08:05:09 +02:00
|
|
|
|
|
|
|
# mozilla
|
2013-05-14 16:33:59 +02:00
|
|
|
if [ -d mozilla ]; then
|
|
|
|
pushd mozilla
|
|
|
|
_repourl=$(hg paths)
|
|
|
|
case "$_repourl" in
|
|
|
|
*$BRANCH*)
|
|
|
|
echo "updating previous tree"
|
|
|
|
hg pull
|
|
|
|
popd
|
|
|
|
;;
|
|
|
|
* )
|
|
|
|
echo "removing obsolete tree"
|
|
|
|
popd
|
|
|
|
rm -rf mozilla
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
if [ ! -d mozilla ]; then
|
|
|
|
echo "cloning new $BRANCH..."
|
|
|
|
hg clone http://hg.mozilla.org/$BRANCH mozilla
|
|
|
|
fi
|
2011-06-01 08:05:09 +02:00
|
|
|
pushd mozilla
|
2013-09-16 09:57:05 +02:00
|
|
|
hg update --check
|
2011-06-01 08:05:09 +02:00
|
|
|
[ "$RELEASE_TAG" == "default" ] || hg update -r $RELEASE_TAG
|
2011-06-15 17:00:40 +02:00
|
|
|
# get repo and source stamp
|
|
|
|
echo -n "REV=" > ../source-stamp.txt
|
|
|
|
hg -R . parent --template="{node|short}\n" >> ../source-stamp.txt
|
|
|
|
echo -n "REPO=" >> ../source-stamp.txt
|
|
|
|
hg showconfig paths.default 2>/dev/null | head -n1 | sed -e "s/^ssh:/http:/" >> ../source-stamp.txt
|
2011-06-01 08:05:09 +02:00
|
|
|
popd
|
2012-04-20 21:18:58 +02:00
|
|
|
echo "creating archive..."
|
2014-02-03 16:34:42 +01:00
|
|
|
tar cJf firefox-$VERSION-source.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS mozilla
|
2011-06-01 08:05:09 +02:00
|
|
|
|
|
|
|
# l10n
|
2012-04-20 21:18:58 +02:00
|
|
|
echo "fetching locales..."
|
2011-06-01 08:05:09 +02:00
|
|
|
test ! -d l10n && mkdir l10n
|
|
|
|
for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do
|
|
|
|
case $locale in
|
|
|
|
ja-JP-mac|en-US)
|
|
|
|
;;
|
|
|
|
*)
|
2016-04-27 09:09:13 +02:00
|
|
|
echo "reading changeset information for $locale"
|
|
|
|
_changeset=$(grep ^$locale l10n_changesets.txt | awk '{ print $2; }')
|
|
|
|
echo "fetching $locale changeset $_changeset ..."
|
2014-09-22 18:35:40 +02:00
|
|
|
hg clone http://hg.mozilla.org/releases/l10n/mozilla-$CHANNEL/$locale l10n/$locale
|
2016-04-27 09:09:13 +02:00
|
|
|
[ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $_changeset
|
2011-06-01 08:05:09 +02:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
2012-04-20 21:18:58 +02:00
|
|
|
echo "creating l10n archive..."
|
2014-02-03 16:34:42 +01:00
|
|
|
tar cJf l10n-$VERSION.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n
|
2011-06-01 08:05:09 +02:00
|
|
|
|
|
|
|
# compare-locales
|
2012-04-20 21:18:58 +02:00
|
|
|
echo "creating compare-locales"
|
2011-06-01 08:05:09 +02:00
|
|
|
hg clone http://hg.mozilla.org/build/compare-locales
|
2014-02-03 16:34:42 +01:00
|
|
|
tar cJf compare-locales.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg compare-locales
|
2011-06-01 08:05:09 +02:00
|
|
|
|