author | Wolfgang Rosenauer <wr@rosenauer.org> |
Mon, 20 Mar 2017 16:44:08 +0100 | |
branch | firefox52 |
changeset 947 | 35d341c079b2 |
parent 946 | 34bd1eb1cbd7 |
child 950 | 266ac4247974 |
child 951 | f7a8fa97a57e |
permissions | -rwxr-xr-x |
262
b680975515e0
probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
1 |
#!/bin/bash |
b680975515e0
probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
2 |
|
909 | 3 |
# TODO |
923 | 4 |
# http://ftp.mozilla.org/pub/firefox/candidates/48.0-candidates/build2/linux-x86_64/en-US/firefox-48.0.json |
5 |
# "moz_source_stamp": "c1de04f39fa956cfce83f6065b0e709369215ed5" |
|
6 |
# http://ftp.mozilla.org/pub/firefox/candidates/48.0-candidates/build2/l10n_changesets.txt |
|
909 | 7 |
|
944 | 8 |
CHANNEL="release" |
340
aabcc7895695
update to version 8.0b1 (just merged stuff; build might still fail)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
337
diff
changeset
|
9 |
BRANCH="releases/mozilla-$CHANNEL" |
946 | 10 |
RELEASE_TAG="2f2b4a119565e9b5691187ee5fbe91881c90b249" |
11 |
VERSION="52.0.1" |
|
262
b680975515e0
probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
12 |
|
b680975515e0
probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
13 |
# mozilla |
646
a3eaf3bb0cc9
try to use an earlier clone in case it's available
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
645
diff
changeset
|
14 |
if [ -d mozilla ]; then |
a3eaf3bb0cc9
try to use an earlier clone in case it's available
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
645
diff
changeset
|
15 |
pushd mozilla |
a3eaf3bb0cc9
try to use an earlier clone in case it's available
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
645
diff
changeset
|
16 |
_repourl=$(hg paths) |
a3eaf3bb0cc9
try to use an earlier clone in case it's available
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
645
diff
changeset
|
17 |
case "$_repourl" in |
a3eaf3bb0cc9
try to use an earlier clone in case it's available
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
645
diff
changeset
|
18 |
*$BRANCH*) |
a3eaf3bb0cc9
try to use an earlier clone in case it's available
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
645
diff
changeset
|
19 |
echo "updating previous tree" |
a3eaf3bb0cc9
try to use an earlier clone in case it's available
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
645
diff
changeset
|
20 |
hg pull |
a3eaf3bb0cc9
try to use an earlier clone in case it's available
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
645
diff
changeset
|
21 |
popd |
a3eaf3bb0cc9
try to use an earlier clone in case it's available
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
645
diff
changeset
|
22 |
;; |
a3eaf3bb0cc9
try to use an earlier clone in case it's available
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
645
diff
changeset
|
23 |
* ) |
a3eaf3bb0cc9
try to use an earlier clone in case it's available
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
645
diff
changeset
|
24 |
echo "removing obsolete tree" |
a3eaf3bb0cc9
try to use an earlier clone in case it's available
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
645
diff
changeset
|
25 |
popd |
a3eaf3bb0cc9
try to use an earlier clone in case it's available
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
645
diff
changeset
|
26 |
rm -rf mozilla |
a3eaf3bb0cc9
try to use an earlier clone in case it's available
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
645
diff
changeset
|
27 |
;; |
a3eaf3bb0cc9
try to use an earlier clone in case it's available
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
645
diff
changeset
|
28 |
esac |
a3eaf3bb0cc9
try to use an earlier clone in case it's available
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
645
diff
changeset
|
29 |
fi |
a3eaf3bb0cc9
try to use an earlier clone in case it's available
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
645
diff
changeset
|
30 |
if [ ! -d mozilla ]; then |
a3eaf3bb0cc9
try to use an earlier clone in case it's available
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
645
diff
changeset
|
31 |
echo "cloning new $BRANCH..." |
a3eaf3bb0cc9
try to use an earlier clone in case it's available
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
645
diff
changeset
|
32 |
hg clone http://hg.mozilla.org/$BRANCH mozilla |
a3eaf3bb0cc9
try to use an earlier clone in case it's available
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
645
diff
changeset
|
33 |
fi |
262
b680975515e0
probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
34 |
pushd mozilla |
659 | 35 |
hg update --check |
262
b680975515e0
probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
36 |
[ "$RELEASE_TAG" == "default" ] || hg update -r $RELEASE_TAG |
279 | 37 |
# get repo and source stamp |
38 |
echo -n "REV=" > ../source-stamp.txt |
|
39 |
hg -R . parent --template="{node|short}\n" >> ../source-stamp.txt |
|
40 |
echo -n "REPO=" >> ../source-stamp.txt |
|
41 |
hg showconfig paths.default 2>/dev/null | head -n1 | sed -e "s/^ssh:/http:/" >> ../source-stamp.txt |
|
262
b680975515e0
probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
42 |
popd |
409 | 43 |
echo "creating archive..." |
699 | 44 |
tar cJf firefox-$VERSION-source.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS mozilla |
262
b680975515e0
probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
45 |
|
b680975515e0
probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
46 |
# l10n |
409 | 47 |
echo "fetching locales..." |
262
b680975515e0
probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
48 |
test ! -d l10n && mkdir l10n |
b680975515e0
probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
49 |
for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do |
b680975515e0
probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
50 |
case $locale in |
b680975515e0
probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
51 |
ja-JP-mac|en-US) |
b680975515e0
probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
52 |
;; |
b680975515e0
probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
53 |
*) |
909 | 54 |
echo "reading changeset information for $locale" |
55 |
_changeset=$(grep ^$locale l10n_changesets.txt | awk '{ print $2; }') |
|
56 |
echo "fetching $locale changeset $_changeset ..." |
|
340
aabcc7895695
update to version 8.0b1 (just merged stuff; build might still fail)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
337
diff
changeset
|
57 |
hg clone http://hg.mozilla.org/releases/l10n/mozilla-$CHANNEL/$locale l10n/$locale |
909 | 58 |
[ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $_changeset |
262
b680975515e0
probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
59 |
;; |
b680975515e0
probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
60 |
esac |
b680975515e0
probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
61 |
done |
409 | 62 |
echo "creating l10n archive..." |
699 | 63 |
tar cJf l10n-$VERSION.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n |
262
b680975515e0
probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
64 |
|
b680975515e0
probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
65 |
# compare-locales |
409 | 66 |
echo "creating compare-locales" |
262
b680975515e0
probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
67 |
hg clone http://hg.mozilla.org/build/compare-locales |
699 | 68 |
tar cJf compare-locales.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg compare-locales |
262
b680975515e0
probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
69 |