equal
deleted
inserted
replaced
1 #!/bin/bash |
1 #!/bin/bash |
2 |
2 |
3 BRANCH="mozilla-central" |
3 BRANCH="releases/mozilla-release" |
4 RELEASE_TAG="default" |
4 RELEASE_TAG="FIREFOX_6_0_2_RELEASE" |
5 VERSION="2.2a" |
5 VERSION="6.0.2" |
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 |
|
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 |
11 popd |
16 popd |
12 tar cjf xulrunner-source-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS mozilla |
17 tar cjf xulrunner-$VERSION-source.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS mozilla |
13 |
18 |
14 # l10n |
19 # l10n |
15 test ! -d l10n && mkdir l10n |
20 test ! -d l10n && mkdir l10n |
16 for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do |
21 for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do |
17 case $locale in |
22 case $locale in |
18 ja-JP-mac|en-US) |
23 ja-JP-mac|en-US) |
19 ;; |
24 ;; |
20 *) |
25 *) |
21 hg clone http://hg.mozilla.org/l10n-central/$locale l10n/$locale |
26 hg clone http://hg.mozilla.org/releases/l10n/mozilla-release/$locale l10n/$locale |
22 [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $RELEASE_TAG |
27 [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $RELEASE_TAG |
23 ;; |
28 ;; |
24 esac |
29 esac |
25 done |
30 done |
26 tar cjf l10n-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n |
31 tar cjf l10n-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n |