equal
deleted
inserted
replaced
1 #!/bin/bash |
1 #!/bin/bash |
2 |
2 |
3 RELEASE_TAG="FIREFOX_3_6_4_RELEASE" |
3 BRANCH="mozilla-central" |
4 VERSION="1.9.2.4" |
4 RELEASE_TAG="default" |
|
5 VERSION="1.9.3a4" |
5 |
6 |
6 # mozilla |
7 # mozilla |
7 hg clone http://hg.mozilla.org/releases/mozilla-1.9.2 mozilla |
8 hg clone http://hg.mozilla.org/$BRANCH mozilla |
8 pushd mozilla |
9 pushd mozilla |
9 hg update -r $RELEASE_TAG |
10 [ "$RELEASE_TAG" == "default" ] || hg update -r $RELEASE_TAG |
10 popd |
11 popd |
11 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 |
12 |
13 |
13 # l10n |
14 # l10n |
14 test ! -d l10n && mkdir l10n |
15 test ! -d l10n && mkdir l10n |
15 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 |
16 case $locale in |
17 case $locale in |
17 ja-JP-mac|en-US) |
18 ja-JP-mac|en-US) |
18 ;; |
19 ;; |
19 *) |
20 *) |
20 hg clone http://hg.mozilla.org/releases/l10n-mozilla-1.9.2/$locale l10n/$locale |
21 hg clone http://hg.mozilla.org/l10n-central/$locale l10n/$locale |
21 hg -R l10n/$locale up -C -r $RELEASE_TAG |
22 [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $RELEASE_TAG |
22 ;; |
23 ;; |
23 esac |
24 esac |
24 done |
25 done |
25 tar cjf l10n-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n |
26 tar cjf l10n-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n |
26 |
27 |