equal
deleted
inserted
replaced
|
1 #!/bin/bash |
|
2 |
|
3 BRANCH="releases/mozilla-beta" |
|
4 RELEASE_TAG="FIREFOX_7_0b5_RELEASE" |
|
5 VERSION="6.99" |
|
6 |
|
7 # mozilla |
|
8 hg clone http://hg.mozilla.org/$BRANCH mozilla |
|
9 pushd mozilla |
|
10 [ "$RELEASE_TAG" == "default" ] || hg update -r $RELEASE_TAG |
|
11 # get repo and source stamp |
|
12 echo -n "REV=" > ../source-stamp.txt |
|
13 hg -R . parent --template="{node|short}\n" >> ../source-stamp.txt |
|
14 echo -n "REPO=" >> ../source-stamp.txt |
|
15 hg showconfig paths.default 2>/dev/null | head -n1 | sed -e "s/^ssh:/http:/" >> ../source-stamp.txt |
|
16 popd |
|
17 tar cjf xulrunner-$VERSION-source.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS mozilla |
|
18 |
|
19 # l10n |
|
20 test ! -d l10n && mkdir l10n |
|
21 for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do |
|
22 case $locale in |
|
23 ja-JP-mac|en-US) |
|
24 ;; |
|
25 *) |
|
26 hg clone http://hg.mozilla.org/releases/l10n/mozilla-beta/$locale l10n/$locale |
|
27 [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $RELEASE_TAG |
|
28 ;; |
|
29 esac |
|
30 done |
|
31 tar cjf l10n-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n |
|
32 |
|
33 # compare-locales |
|
34 hg clone http://hg.mozilla.org/build/compare-locales |
|
35 tar cjf compare-locales.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg compare-locales |
|
36 |