[packages/roundcubemail] - always package en_US language
glen
glen at pld-linux.org
Sat Oct 6 21:21:34 CEST 2012
commit 18336ee23fa4bf042ef31dbafb7d8c3cacc792c6
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Oct 6 22:21:02 2012 +0300
- always package en_US language
find-lang.sh | 13 ++++++++++---
roundcubemail.spec | 2 +-
2 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/roundcubemail.spec b/roundcubemail.spec
index c4a9f69..2291ef5 100644
--- a/roundcubemail.spec
+++ b/roundcubemail.spec
@@ -16,7 +16,7 @@ Summary: RoundCube Webmail
Summary(pl.UTF-8): RoundCube Webmail - poczta przez WWW
Name: roundcubemail
Version: 0.8.1
-Release: 1
+Release: 2
License: GPL v3+
Group: Applications/Mail
#Source0: http://downloads.sourceforge.net/roundcubemail/%{name}-%{version}.tar.gz
diff --git a/find-lang.sh b/find-lang.sh
index c9e0d1e..0d23e19 100644
--- a/find-lang.sh
+++ b/find-lang.sh
@@ -38,19 +38,26 @@ while read dir; do
continue
;;
*.*)
- echo >&2 "ERROR: bad match: $lang"
+ echo >&2 "ERROR: Bad match: $lang"
rc=1
;;
*-*)
echo >&2 "ERROR: Need mapping for $lang!"
rc=1
;;
+ en_US)
+ lang=
+ ;;
esac
- echo "%lang($lang) ${path}" >> $langfile
+ if [ "$lang" ]; then
+ echo "%lang($lang) $path" >> $langfile
+ else
+ echo "$path" >> $langfile
+ fi
done
done < $tmp
-if [ "$(egrep -v '(^%defattr|^$)' $langfile | wc -l)" -le 0 ]; then
+if [ "$(grep -Ev '(^%defattr|^$)' $langfile | wc -l)" -le 0 ]; then
echo >&2 "$PROG: Error: international files not found!"
rc=1
fi
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/roundcubemail.git/commitdiff/18336ee23fa4bf042ef31dbafb7d8c3cacc792c6
More information about the pld-cvs-commit
mailing list