mozilla-xulrunner192/create-tar.sh
author Wolfgang Rosenauer <wr@rosenauer.org>
Mon, 30 Nov 2009 17:16:00 +0100
changeset 11 32afe3be5990
parent 4 523b1d92948c
child 18 c4da314d7975
permissions -rwxr-xr-x
Integrate mozilla-kde patch in xulrunner192 and some cleanup
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
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     3
RELEASE_TAG="FIREFOX_3_6b4_RELEASE"
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     4
VERSION="1.9.2b4"
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     5
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     6
# mozilla
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     7
hg clone http://hg.mozilla.org/releases/mozilla-1.9.2 mozilla
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     8
pushd mozilla
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     9
hg update -r $RELEASE_TAG
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    10
popd
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    11
tar cjf xulrunner-source-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS mozilla
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    12
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    13
# l10n
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    14
test ! -d l10n && mkdir l10n
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    15
for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    16
  case $locale in 
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    17
    ja-JP-mac|en-US)
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
    *)
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    20
      hg clone http://hg.mozilla.org/releases/l10n-mozilla-1.9.2/$locale l10n/$locale
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    21
      hg -R l10n/$locale up -C -r $RELEASE_TAG
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    22
      ;;
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    23
  esac
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    24
done
523b1d92948c Add mozilla-xulrunner192 package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    25
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
    26