equal
deleted
inserted
replaced
7 |
7 |
8 CHANNEL="beta" |
8 CHANNEL="beta" |
9 BRANCH="releases/mozilla-$CHANNEL" |
9 BRANCH="releases/mozilla-$CHANNEL" |
10 RELEASE_TAG="73ef186ad51ac2c4fc27b1f149fcc94355fe7dc6" |
10 RELEASE_TAG="73ef186ad51ac2c4fc27b1f149fcc94355fe7dc6" |
11 VERSION="58.99" |
11 VERSION="58.99" |
|
12 |
|
13 # check required tools |
|
14 test -x /usr/bin/hg || ( echo "hg missing: execute zypper in mercurial"; exit 5 ) |
|
15 test -x /usr/bin/jq || ( echo "jq missing: execute zypper in jq"; exit 5 ) |
|
16 |
12 |
17 |
13 # mozilla |
18 # mozilla |
14 if [ -d mozilla ]; then |
19 if [ -d mozilla ]; then |
15 pushd mozilla |
20 pushd mozilla |
16 _repourl=$(hg paths) |
21 _repourl=$(hg paths) |
52 tar $compression -cf firefox-$VERSION-source.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS mozilla |
57 tar $compression -cf firefox-$VERSION-source.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS mozilla |
53 |
58 |
54 # l10n |
59 # l10n |
55 echo "fetching locales..." |
60 echo "fetching locales..." |
56 test ! -d l10n && mkdir l10n |
61 test ! -d l10n && mkdir l10n |
57 for locale in $(awk '{ print $1; }' l10n_changesets.txt); do |
62 jq -r 'to_entries[]| "\(.key) \(.value|.revision)"' mozilla/browser/locales/l10n-changesets.json | \ |
58 case $locale in |
63 while read locale changeset ; do |
59 ja-JP-mac|en-US) |
64 case $locale in |
60 ;; |
65 ja-JP-mac|en-US) |
61 *) |
66 ;; |
62 echo "reading changeset information for $locale" |
67 *) |
63 _changeset=$(grep ^$locale l10n_changesets.txt | awk '{ print $2; }') |
68 echo "reading changeset information for $locale" |
64 echo "fetching $locale changeset $_changeset ..." |
69 echo "fetching $locale changeset $changeset ..." |
65 hg clone http://hg.mozilla.org/l10n-central/$locale l10n/$locale |
70 hg clone http://hg.mozilla.org/l10n-central/$locale l10n/$locale |
66 [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $_changeset |
71 [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $changeset |
67 ;; |
72 ;; |
68 esac |
73 esac |
69 done |
74 done |
70 echo "creating l10n archive..." |
75 echo "creating l10n archive..." |
71 tar $compression -cf l10n-$VERSION.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n |
76 tar $compression -cf l10n-$VERSION.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n |
72 |
77 |
73 # compare-locales |
78 # compare-locales |
74 echo "creating compare-locales" |
79 echo "creating compare-locales" |