[thunderbird-lightning] Parse tarballdir, make hg update work
Orion Poplawski
orion at fedoraproject.org
Fri Jan 6 18:44:13 UTC 2012
commit e44f0ce33b21b2aaa7054abc487c4a31e758deea
Author: Orion Poplawski <orion at cora.nwra.com>
Date: Fri Jan 6 10:56:28 2012 -0700
Parse tarballdir, make hg update work
mklangsource.sh | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/mklangsource.sh b/mklangsource.sh
index 1b20901..c151b97 100755
--- a/mklangsource.sh
+++ b/mklangsource.sh
@@ -1,10 +1,11 @@
#!/bin/bash
# This checks out and builds the language sources. The lightning source needs
# to already be unpacked
-ver=`awk '/^Version:/ { print $2 }' thunderbird-lightning.spec`
-tag=CALENDAR_${ver/./_}_RELEASE
-locales=$PWD/thunderbird-lightning-${ver}/comm-beta/calendar/locales/shipped-locales
-if [ ! -f $locale ]
+ver=`awk '/^Version:/ { print $2; exit }' thunderbird-lightning.spec`
+tag=CALENDAR_${ver//./_}_RELEASE
+branch=`awk '/^%global *tarballdir/ { print $3; exit }' thunderbird-lightning.spec`
+locales=$PWD/thunderbird-lightning-${ver}/${branch}/calendar/locales/shipped-locales
+if [ ! -f $locales ]
then
echo "ERROR: missing $locales, try fedpkg prep first"
exit 1
@@ -15,8 +16,10 @@ for lang in $(<$locales)
do
if [ -d $lang ]
then
+ pushd $lang
hg pull
hg update $tag
+ popd
else
hg clone -u $tag http://hg.mozilla.org/releases/l10n/mozilla-release/$lang
fi
More information about the scm-commits
mailing list