summaryrefslogtreecommitdiffstats
path: root/mklangsource.sh
blob: 964937ef99c2034df323f937262514c5fc830c35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# This checks out and builds the language sources.  The lightning source needs
# to already be unpacked
locales=$PWD/thunderbird-lightning-1.0/comm-release/calendar/locales/shipped-locales
if [ ! -f $locale ]
then
  echo "ERROR: missing $locales, try fedpkg prep first"
  exit 1
fi
rm -rf l10n-miramar
mkdir l10n-miramar
cd l10n-miramar
for lang in $(<$locales)
do
  hg clone http://hg.mozilla.org/releases/l10n-miramar/$lang
done

# Tar up, minus the mercurial files
cd ..
tar cjf l10n-miramar.tar.bz2 --exclude='.hg*'  l10n-miramar