34 hg -R . parent --template="{node|short}\n" >> ../source-stamp.txt |
34 hg -R . parent --template="{node|short}\n" >> ../source-stamp.txt |
35 echo -n "REPO=" >> ../source-stamp.txt |
35 echo -n "REPO=" >> ../source-stamp.txt |
36 hg showconfig paths.default 2>/dev/null | head -n1 | sed -e "s/^ssh:/http:/" >> ../source-stamp.txt |
36 hg showconfig paths.default 2>/dev/null | head -n1 | sed -e "s/^ssh:/http:/" >> ../source-stamp.txt |
37 popd |
37 popd |
38 echo "creating archive..." |
38 echo "creating archive..." |
39 tar cjf xulrunner-$VERSION-source.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS mozilla |
39 tar cJf xulrunner-$VERSION-source.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS mozilla |
40 |
40 |
41 # l10n |
41 # l10n |
42 echo "fetching locales..." |
42 echo "fetching locales..." |
43 test ! -d l10n && mkdir l10n |
43 test ! -d l10n && mkdir l10n |
44 for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do |
44 for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do |
45 case $locale in |
45 case $locale in |
46 ja-JP-mac|en-US) |
46 ja-JP-mac|en-US) |
47 ;; |
47 ;; |
48 *) |
48 *) |
49 echo "fetching $locale ..." |
49 echo "fetching $locale ..." |
50 hg clone http://hg.mozilla.org/releases/l10n/mozilla-$CHANNEL/$locale l10n/$locale |
50 hg clone http://hg.mozilla.org/releases/l10n/mozilla-release/$locale l10n/$locale |
51 [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $RELEASE_TAG |
51 [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $RELEASE_TAG |
52 ;; |
52 ;; |
53 esac |
53 esac |
54 done |
54 done |
55 echo "creating l10n archive..." |
55 echo "creating l10n archive..." |
56 tar cjf l10n-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n |
56 tar cJf l10n-$VERSION.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n |
57 |
57 |
58 # compare-locales |
58 # compare-locales |
59 echo "creating compare-locales" |
59 echo "creating compare-locales" |
60 hg clone http://hg.mozilla.org/build/compare-locales |
60 hg clone http://hg.mozilla.org/build/compare-locales |
61 tar cjf compare-locales.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg compare-locales |
61 tar cJf compare-locales.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg compare-locales |
62 |
62 |