mozilla-xulrunner20/create-tar.sh
author Wolfgang Rosenauer <wr@rosenauer.org>
Wed, 21 Jul 2010 08:35:17 +0200
changeset 99 e7df24b73a40
parent 94 mozilla-xulrunner193/create-tar.sh@7177cac23915
child 100 f224b7faa82f
permissions -rwxr-xr-x
rename 193 to 20

#!/bin/bash

BRANCH="mozilla-central"
RELEASE_TAG="default"
VERSION="2.0b"

# mozilla
hg clone http://hg.mozilla.org/$BRANCH mozilla
pushd mozilla
[ "$RELEASE_TAG" == "default" ] || hg update -r $RELEASE_TAG
popd
tar cjf xulrunner-source-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS mozilla

# l10n
test ! -d l10n && mkdir l10n
for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do
  case $locale in 
    ja-JP-mac|en-US)
      ;;
    *)
      hg clone http://hg.mozilla.org/l10n-central/$locale l10n/$locale
      [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $RELEASE_TAG
      ;;
  esac
done
tar cjf l10n-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n