mozilla-xulrunner192/create-tar.sh
author Wolfgang Rosenauer <wr@rosenauer.org>
Thu, 14 Jan 2010 14:03:20 +0100
changeset 51 a87b1d6c6d53
parent 46 c743908ffe6f
child 52 024a595d7885
permissions -rwxr-xr-x
Non-conflicting %ghost files are only supported in RPM since 11.2

#!/bin/bash

RELEASE_TAG="FIREFOX_3_6rc1_RELEASE"
VERSION="1.9.2rc1"

# mozilla
hg clone http://hg.mozilla.org/releases/mozilla-1.9.2 mozilla
pushd mozilla
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/releases/l10n-mozilla-1.9.2/$locale l10n/$locale
      hg -R l10n/$locale up -C -r $RELEASE_TAG
      ;;
  esac
done
tar cjf l10n-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n