equal
deleted
inserted
replaced
1 #!/bin/bash |
1 #!/bin/bash |
2 |
2 |
3 BRANCH="mozilla-beta" |
3 BRANCH="mozilla-beta" |
4 RELEASE_TAG="FIREFOX_5_0b3_RELEASE" |
4 RELEASE_TAG="FIREFOX_5_0b6_RELEASE" |
5 VERSION="4.99" |
5 VERSION="4.99" |
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 firefox-$VERSION-source.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS mozilla |
17 tar cjf firefox-$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 |