equal
deleted
inserted
replaced
1 #!/bin/bash |
1 #!/bin/bash |
2 |
2 |
3 CHANNEL="beta" |
3 # TODO |
|
4 # http://ftp.mozilla.org/pub/firefox/candidates/46.0-candidates/build5/linux-x86_64/en-US/firefox-46.0.json |
|
5 # "moz_source_stamp": "078baf501b55eaa47f3b189fda4dd28dae1fa257" |
|
6 # http://ftp.mozilla.org/pub/firefox/candidates/46.0-candidates/build5/l10n_changesets.txt |
|
7 |
|
8 CHANNEL="release" |
4 BRANCH="releases/mozilla-$CHANNEL" |
9 BRANCH="releases/mozilla-$CHANNEL" |
5 RELEASE_TAG="FIREFOX_44_0b9_RELEASE" |
10 RELEASE_TAG="078baf501b55eaa47f3b189fda4dd28dae1fa257" |
6 VERSION="43.99" |
11 VERSION="46.0" |
7 |
12 |
8 # mozilla |
13 # mozilla |
9 if [ -d mozilla ]; then |
14 if [ -d mozilla ]; then |
10 pushd mozilla |
15 pushd mozilla |
11 _repourl=$(hg paths) |
16 _repourl=$(hg paths) |
44 for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do |
49 for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do |
45 case $locale in |
50 case $locale in |
46 ja-JP-mac|en-US) |
51 ja-JP-mac|en-US) |
47 ;; |
52 ;; |
48 *) |
53 *) |
49 echo "fetching $locale ..." |
54 echo "reading changeset information for $locale" |
|
55 _changeset=$(grep ^$locale l10n_changesets.txt | awk '{ print $2; }') |
|
56 echo "fetching $locale changeset $_changeset ..." |
50 hg clone http://hg.mozilla.org/releases/l10n/mozilla-$CHANNEL/$locale l10n/$locale |
57 hg clone http://hg.mozilla.org/releases/l10n/mozilla-$CHANNEL/$locale l10n/$locale |
51 [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $RELEASE_TAG |
58 [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $_changeset |
52 ;; |
59 ;; |
53 esac |
60 esac |
54 done |
61 done |
55 echo "creating l10n archive..." |
62 echo "creating l10n archive..." |
56 tar cJf l10n-$VERSION.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n |
63 tar cJf l10n-$VERSION.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n |