xulrunner/create-tar.sh
author Wolfgang Rosenauer <wr@rosenauer.org>
Wed, 14 Sep 2011 15:10:08 +0200
branchfirefox6
changeset 321 9e72118c861c
parent 317 5d9ea1c5e50e
permissions -rwxr-xr-x
create-tar.sh pulls correct sources
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     1
#!/bin/bash
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     2
321
9e72118c861c create-tar.sh pulls correct sources
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 317
diff changeset
     3
BRANCH="releases/mozilla-release"
9e72118c861c create-tar.sh pulls correct sources
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 317
diff changeset
     4
RELEASE_TAG="FIREFOX_6_0_2_RELEASE"
9e72118c861c create-tar.sh pulls correct sources
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 317
diff changeset
     5
VERSION="6.0.2"
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     6
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     7
# mozilla
78
e0271a18500f mozilla-xulrunner193: initial compiling version (not all patches rebased yet)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 76
diff changeset
     8
hg clone http://hg.mozilla.org/$BRANCH mozilla
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     9
pushd mozilla
78
e0271a18500f mozilla-xulrunner193: initial compiling version (not all patches rebased yet)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 76
diff changeset
    10
[ "$RELEASE_TAG" == "default" ] || hg update -r $RELEASE_TAG
321
9e72118c861c create-tar.sh pulls correct sources
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 317
diff changeset
    11
# get repo and source stamp
9e72118c861c create-tar.sh pulls correct sources
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 317
diff changeset
    12
echo -n "REV=" > ../source-stamp.txt
9e72118c861c create-tar.sh pulls correct sources
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 317
diff changeset
    13
hg -R . parent --template="{node|short}\n" >> ../source-stamp.txt
9e72118c861c create-tar.sh pulls correct sources
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 317
diff changeset
    14
echo -n "REPO=" >> ../source-stamp.txt
9e72118c861c create-tar.sh pulls correct sources
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 317
diff changeset
    15
hg showconfig paths.default 2>/dev/null | head -n1 | sed -e "s/^ssh:/http:/" >> ../source-stamp.txt
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    16
popd
321
9e72118c861c create-tar.sh pulls correct sources
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 317
diff changeset
    17
tar cjf xulrunner-$VERSION-source.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS mozilla
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    18
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    19
# l10n
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    20
test ! -d l10n && mkdir l10n
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    21
for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do
226
6bf3bb4c115e update for 2.0b11/4.0b11
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 220
diff changeset
    22
  case $locale in
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    23
    ja-JP-mac|en-US)
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    24
      ;;
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    25
    *)
321
9e72118c861c create-tar.sh pulls correct sources
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 317
diff changeset
    26
      hg clone http://hg.mozilla.org/releases/l10n/mozilla-release/$locale l10n/$locale
78
e0271a18500f mozilla-xulrunner193: initial compiling version (not all patches rebased yet)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 76
diff changeset
    27
      [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $RELEASE_TAG
4
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    28
      ;;
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    29
  esac
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    30
done
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    31
tar cjf l10n-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    32
154
e8d6420a4212 integrate compare-locales into build to merge missing translations with en-US
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
    33
# compare-locales
e8d6420a4212 integrate compare-locales into build to merge missing translations with en-US
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
    34
hg clone http://hg.mozilla.org/build/compare-locales
e8d6420a4212 integrate compare-locales into build to merge missing translations with en-US
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
    35
tar cjf compare-locales.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg compare-locales
e8d6420a4212 integrate compare-locales into build to merge missing translations with en-US
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
    36