equal
deleted
inserted
replaced
1 #!/bin/bash |
1 #!/bin/bash |
2 |
2 |
3 BRANCH="mozilla-central" |
3 BRANCH="mozilla-central" |
4 RELEASE_TAG="FIREFOX_4_0b10_RELEASE" |
4 RELEASE_TAG="FIREFOX_4_0b11_RELEASE" |
5 VERSION="2.0b10" |
5 VERSION="2.0b11" |
6 |
6 |
7 # mozilla |
7 # mozilla |
8 hg clone http://hg.mozilla.org/$BRANCH mozilla |
8 hg clone http://hg.mozilla.org/$BRANCH mozilla |
9 pushd mozilla |
9 pushd mozilla |
10 [ "$RELEASE_TAG" == "default" ] || hg update -r $RELEASE_TAG |
10 [ "$RELEASE_TAG" == "default" ] || hg update -r $RELEASE_TAG |
12 tar cjf xulrunner-source-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS mozilla |
12 tar cjf xulrunner-source-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS mozilla |
13 |
13 |
14 # l10n |
14 # l10n |
15 test ! -d l10n && mkdir l10n |
15 test ! -d l10n && mkdir l10n |
16 for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do |
16 for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do |
17 case $locale in |
17 case $locale in |
18 ja-JP-mac|en-US) |
18 ja-JP-mac|en-US) |
19 ;; |
19 ;; |
20 *) |
20 *) |
21 hg clone http://hg.mozilla.org/l10n-central/$locale l10n/$locale |
21 hg clone http://hg.mozilla.org/l10n-central/$locale l10n/$locale |
22 [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $RELEASE_TAG |
22 [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $RELEASE_TAG |