[seamonkey/f13/master] Adjust langpack-fu for the actual filenames of the seamonkey langpacks
Christopher Aillon
caillon at fedoraproject.org
Sun Apr 10 00:43:25 UTC 2011
commit bc0fd5ba1e5b7ec996d041b3eb11688f545e8f41
Author: Christopher Aillon <caillon at redhat.com>
Date: Sat Apr 9 17:39:46 2011 -0700
Adjust langpack-fu for the actual filenames of the seamonkey langpacks
The new moz-grab-langpacks script[1] doesn't rename the langpack
filenames to keep them closer to original, so we need to adjust here.
[1] http://fedorapeople.org/gitweb?p=caillon/public_git/gecko-maint.git
seamonkey.spec | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/seamonkey.spec b/seamonkey.spec
index de9d5f0..48d5791 100644
--- a/seamonkey.spec
+++ b/seamonkey.spec
@@ -198,7 +198,7 @@ echo > ../%{name}.lang
%{__mkdir_p} $RPM_BUILD_ROOT/%{mozdir}/extensions
%{__tar} xf %{SOURCE1}
for langpack in `ls seamonkey-langpacks/*.xpi`; do
- language=$(basename $langpack .xpi | %{__sed} -e 's/%{name}-%{version}.//')
+ language=$(basename $langpack .xpi | cut -d '.' -f 4)
extensiondir=$RPM_BUILD_ROOT/%{mozdir}/extensions/langpack-$language at seamonkey.mozilla.org
%{__mkdir_p} $extensiondir
unzip $langpack -d $extensiondir
More information about the scm-commits
mailing list