SPECS: myspell-dictionaries.spec - umask to scripts; simplify and ...
glen
glen at pld-linux.org
Sun Mar 4 17:27:37 CET 2007
Author: glen Date: Sun Mar 4 16:27:37 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- umask to scripts; simplify and drop bashism
---- Files affected:
SPECS:
myspell-dictionaries.spec (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SPECS/myspell-dictionaries.spec
diff -u SPECS/myspell-dictionaries.spec:1.3 SPECS/myspell-dictionaries.spec:1.4
--- SPECS/myspell-dictionaries.spec:1.3 Sun Mar 4 15:30:11 2007
+++ SPECS/myspell-dictionaries.spec Sun Mar 4 17:27:32 2007
@@ -1,6 +1,6 @@
# $Revision$, $Date$
%define _ver 1.0.2
-%define _rel 0.3
+%define _rel 0.4
Summary: MySpell Spelling and Hyphenation dictionaries
Name: myspell-dictionaries
Version: %{_ver}
@@ -1536,405 +1536,395 @@
## Scripts for spell checking
##
%post -n myspell-af_ZA
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*af[ \t]*ZA[ \t]*af_ZA" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*af[ \t]*ZA[ \t]*af_ZA" %{dictdir}/dictionary.lst; then
echo "DICT af ZA af_ZA" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-af_ZA
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*af\s*ZA\s*af_ZA$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-bg_BG
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*bg[ \t]*BG[ \t]*bg_BG" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*bg[ \t]*BG[ \t]*bg_BG" %{dictdir}/dictionary.lst; then
echo "DICT bg BG bg_BG" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-bg_BG
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*bg\s*BG\s*bg_BG$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-ca_ES
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*ca[ \t]*ES[ \t]*ca_ES" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*ca[ \t]*ES[ \t]*ca_ES" %{dictdir}/dictionary.lst; then
echo "DICT ca ES ca_ES" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-ca_ES
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*ca\s*ES\s*ca_ES$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-cs_CZ
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*cs[ \t]*CZ[ \t]*cs_CZ" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*cs[ \t]*CZ[ \t]*cs_CZ" %{dictdir}/dictionary.lst; then
echo "DICT cs CZ cs_CZ" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-cs_CZ
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*cs\s*CZ\s*cs_CZ$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-cy_GB
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*cy[ \t]*GB[ \t]*cy_GB" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*cy[ \t]*GB[ \t]*cy_GB" %{dictdir}/dictionary.lst; then
echo "DICT cy GB cy_GB" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-cy_GB
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*cy\s*GB\s*cy_GB$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-da_DK
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*da[ \t]*DK[ \t]*da_DK" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*da[ \t]*DK[ \t]*da_DK" %{dictdir}/dictionary.lst; then
echo "DICT da DK da_DK" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-da_DK
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*da\s*DK\s*da_DK$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-de_AT
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*de[ \t]*AT[ \t]*de_AT" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*de[ \t]*AT[ \t]*de_AT" %{dictdir}/dictionary.lst; then
echo "DICT de AT de_AT" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-de_AT
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*de\s*AT\s*de_AT$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-el_GR
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*el[ \t]*GR[ \t]*el_GR" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*el[ \t]*GR[ \t]*el_GR" %{dictdir}/dictionary.lst; then
echo "DICT el GR el_GR" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-el_GR
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*el\s*GR\s*el_GR$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-en_NZ
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*en[ \t]*NZ[ \t]*en_NZ" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*en[ \t]*NZ[ \t]*en_NZ" %{dictdir}/dictionary.lst; then
echo "DICT en NZ en_NZ" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-en_NZ
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*en\s*NZ\s*en_NZ$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-es_MX
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*es[ \t]*MX[ \t]*es_MX" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*es[ \t]*MX[ \t]*es_MX" %{dictdir}/dictionary.lst; then
echo "DICT es MX es_MX" >> %{dictdir}/dictionary.lst
fi
-
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*es[ \t]*AR[ \t]*es_MX" %{dictdir}/dictionary.lst
-then
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*es[ \t]*AR[ \t]*es_MX" %{dictdir}/dictionary.lst; then
echo "DICT es AR es_MX" >> %{dictdir}/dictionary.lst
fi
-
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*es[ \t]*CO[ \t]*es_MX" %{dictdir}/dictionary.lst
-then
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*es[ \t]*CO[ \t]*es_MX" %{dictdir}/dictionary.lst; then
echo "DICT es CO es_MX" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-es_MX
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*es\s*MX\s*es_MX$/ or print" %{dictdir}/dictionary.lst
-fi
-
-if [[ "$1" = "0" ]]; then
perl -ni -e "/^DICT\s*es\s*AR\s*es_MX$/ or print" %{dictdir}/dictionary.lst
-fi
-
-if [[ "$1" = "0" ]]; then
perl -ni -e "/^DICT\s*es\s*CO\s*es_MX$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-et_EE
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*et[ \t]*EE[ \t]*et_EE" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*et[ \t]*EE[ \t]*et_EE" %{dictdir}/dictionary.lst; then
echo "DICT et EE et_EE" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-et_EE
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*et\s*EE\s*et_EE$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-fo_FO
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*fo[ \t]*FO[ \t]*fo_FO" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*fo[ \t]*FO[ \t]*fo_FO" %{dictdir}/dictionary.lst; then
echo "DICT fo FO fo_FO" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-fo_FO
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*fo\s*FO\s*fo_FO$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-fr_BE
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*fr[ \t]*BE[ \t]*fr_BE" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*fr[ \t]*BE[ \t]*fr_BE" %{dictdir}/dictionary.lst; then
echo "DICT fr BE fr_BE" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-fr_BE
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*fr\s*BE\s*fr_BE$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-ga_IE
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*ga[ \t]*IE[ \t]*ga_IE" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*ga[ \t]*IE[ \t]*ga_IE" %{dictdir}/dictionary.lst; then
echo "DICT ga IE ga_IE" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-ga_IE
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*ga\s*IE\s*ga_IE$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-gl_ES
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*gl[ \t]*ES[ \t]*gl_ES" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*gl[ \t]*ES[ \t]*gl_ES" %{dictdir}/dictionary.lst; then
echo "DICT gl ES gl_ES" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-gl_ES
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*gl\s*ES\s*gl_ES$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-hr_HR
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*hr[ \t]*HR[ \t]*hr_HR" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*hr[ \t]*HR[ \t]*hr_HR" %{dictdir}/dictionary.lst; then
echo "DICT hr HR hr_HR" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-hr_HR
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*hr\s*HR\s*hr_HR$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-hu_HU
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*hu[ \t]*HU[ \t]*hu_HU" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*hu[ \t]*HU[ \t]*hu_HU" %{dictdir}/dictionary.lst; then
echo "DICT hu HU hu_HU" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-hu_HU
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*hu\s*HU\s*hu_HU$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-id_ID
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*id[ \t]*ID[ \t]*id_ID" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*id[ \t]*ID[ \t]*id_ID" %{dictdir}/dictionary.lst; then
echo "DICT id ID id_ID" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-id_ID
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*id\s*ID\s*id_ID$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-it_IT
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*it[ \t]*IT[ \t]*it_IT" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*it[ \t]*IT[ \t]*it_IT" %{dictdir}/dictionary.lst; then
echo "DICT it IT it_IT" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-it_IT
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*it\s*IT\s*it_IT$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-lt_LT
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*lt[ \t]*LT[ \t]*lt_LT" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*lt[ \t]*LT[ \t]*lt_LT" %{dictdir}/dictionary.lst; then
echo "DICT lt LT lt_LT" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-lt_LT
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*lt\s*LT\s*lt_LT$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-mi_NZ
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*mi[ \t]*NZ[ \t]*mi_NZ" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*mi[ \t]*NZ[ \t]*mi_NZ" %{dictdir}/dictionary.lst; then
echo "DICT mi NZ mi_NZ" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-mi_NZ
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*mi\s*NZ\s*mi_NZ$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-ms_MY
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*ms[ \t]*MY[ \t]*ms_MY" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*ms[ \t]*MY[ \t]*ms_MY" %{dictdir}/dictionary.lst; then
echo "DICT ms MY ms_MY" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-ms_MY
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*ms\s*MY\s*ms_MY$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-nb_NO
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*nb[ \t]*NO[ \t]*nb_NO" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*nb[ \t]*NO[ \t]*nb_NO" %{dictdir}/dictionary.lst; then
echo "DICT nb NO nb_NO" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-nb_NO
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*nb\s*NO\s*nb_NO$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-nl_NL
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*nl[ \t]*NL[ \t]*nl_NL" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*nl[ \t]*NL[ \t]*nl_NL" %{dictdir}/dictionary.lst; then
echo "DICT nl NL nl_NL" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-nl_NL
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*nl\s*NL\s*nl_NL$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-nn_NO
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*nn[ \t]*NO[ \t]*nn_NO" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*nn[ \t]*NO[ \t]*nn_NO" %{dictdir}/dictionary.lst; then
echo "DICT nn NO nn_NO" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-nn_NO
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*nn\s*NO\s*nn_NO$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-pl_PL
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*pl[ \t]*PL[ \t]*pl_PL" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*pl[ \t]*PL[ \t]*pl_PL" %{dictdir}/dictionary.lst; then
echo "DICT pl PL pl_PL" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-pl_PL
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*pl\s*PL\s*pl_PL$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-pt_BR
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*pt[ \t]*BR[ \t]*pt_BR" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*pt[ \t]*BR[ \t]*pt_BR" %{dictdir}/dictionary.lst; then
echo "DICT pt BR pt_BR" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-pt_BR
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*pt\s*BR\s*pt_BR$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-ro_RO
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*ro[ \t]*RO[ \t]*ro_RO" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*ro[ \t]*RO[ \t]*ro_RO" %{dictdir}/dictionary.lst; then
echo "DICT ro RO ro_RO" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-ro_RO
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*ro\s*RO\s*ro_RO$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-ru_RU
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*ru[ \t]*RU[ \t]*ru_RU" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*ru[ \t]*RU[ \t]*ru_RU" %{dictdir}/dictionary.lst; then
echo "DICT ru RU ru_RU" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-ru_RU
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*ru\s*RU\s*ru_RU$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-sk_SK
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*sk[ \t]*SK[ \t]*sk_SK" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*sk[ \t]*SK[ \t]*sk_SK" %{dictdir}/dictionary.lst; then
echo "DICT sk SK sk_SK" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-sk_SK
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*sk\s*SK\s*sk_SK$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-sl_SI
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*sl[ \t]*SI[ \t]*sl_SI" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*sl[ \t]*SI[ \t]*sl_SI" %{dictdir}/dictionary.lst; then
echo "DICT sl SI sl_SI" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-sl_SI
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*sl\s*SI\s*sl_SI$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-sv_SE
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*sv[ \t]*SE[ \t]*sv_SE" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*sv[ \t]*SE[ \t]*sv_SE" %{dictdir}/dictionary.lst; then
echo "DICT sv SE sv_SE" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-sv_SE
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*sv\s*SE\s*sv_SE$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-sw_KE
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*sw[ \t]*KE[ \t]*sw_KE" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*sw[ \t]*KE[ \t]*sw_KE" %{dictdir}/dictionary.lst; then
echo "DICT sw KE sw_KE" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-sw_KE
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*sw\s*KE\s*sw_KE$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-uk_UA
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*uk[ \t]*UA[ \t]*uk_UA" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*uk[ \t]*UA[ \t]*uk_UA" %{dictdir}/dictionary.lst; then
echo "DICT uk UA uk_UA" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-uk_UA
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*uk\s*UA\s*uk_UA$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-zu_ZA
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*zu[ \t]*ZA[ \t]*zu_ZA" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^DICT[ \t]*zu[ \t]*ZA[ \t]*zu_ZA" %{dictdir}/dictionary.lst; then
echo "DICT zu ZA zu_ZA" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-zu_ZA
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^DICT\s*zu\s*ZA\s*zu_ZA$/ or print" %{dictdir}/dictionary.lst
fi
@@ -1942,553 +1932,430 @@
## Scripts for hyphenation
##
%post -n myspell-hyph-bg
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^HYPH[ \t]*bg[ \t]*BG[ \t]*hyph_bg" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^HYPH[ \t]*bg[ \t]*BG[ \t]*hyph_bg" %{dictdir}/dictionary.lst; then
echo "HYPH bg BG hyph_bg" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-hyph-bg
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^HYPH\s*bg\s*BG\s*hyph_bg$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-hyph-cs
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^HYPH[ \t]*cs[ \t]*CZ[ \t]*hyph_cs" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^HYPH[ \t]*cs[ \t]*CZ[ \t]*hyph_cs" %{dictdir}/dictionary.lst; then
echo "HYPH cs CZ hyph_cs" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-hyph-cs
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^HYPH\s*cs\s*CZ\s*hyph_cs$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-hyph-da
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^HYPH[ \t]*da[ \t]*DA[ \t]*hyph_da" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^HYPH[ \t]*da[ \t]*DA[ \t]*hyph_da" %{dictdir}/dictionary.lst; then
echo "HYPH da DA hyph_da" >> %{dictdir}/dictionary.lst
fi
%preun -n myspell-hyph-da
-if [[ "$1" = "0" ]]; then
+if [ "$1" = "0" ]; then
perl -ni -e "/^HYPH\s*da\s*DA\s*hyph_da$/ or print" %{dictdir}/dictionary.lst
fi
%post -n myspell-hyph-de
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^HYPH[ \t]*de[ \t]*DE[ \t]*hyph_de" %{dictdir}/dictionary.lst
-then
+umask 002
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^HYPH[ \t]*de[ \t]*DE[ \t]*hyph_de" %{dictdir}/dictionary.lst; then
echo "HYPH de DE hyph_de" >> %{dictdir}/dictionary.lst
fi
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^HYPH[ \t]*de[ \t]*AT[ \t]*hyph_de" %{dictdir}/dictionary.lst
-then
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^HYPH[ \t]*de[ \t]*AT[ \t]*hyph_de" %{dictdir}/dictionary.lst; then
echo "HYPH de AT hyph_de" >> %{dictdir}/dictionary.lst
fi
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^HYPH[ \t]*de[ \t]*CH[ \t]*hyph_de" %{dictdir}/dictionary.lst
-then
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^HYPH[ \t]*de[ \t]*CH[ \t]*hyph_de" %{dictdir}/dictionary.lst; then
echo "HYPH de CH hyph_de" >> %{dictdir}/dictionary.lst
fi
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^HYPH[ \t]*de[ \t]*LI[ \t]*hyph_de" %{dictdir}/dictionary.lst
-then
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^HYPH[ \t]*de[ \t]*LI[ \t]*hyph_de" %{dictdir}/dictionary.lst; then
echo "HYPH de LI hyph_de" >> %{dictdir}/dictionary.lst
fi
-if [[ ! -f "%{dictdir}/dictionary.lst" ]] || ! grep -q "^HYPH[ \t]*de[ \t]*LU[ \t]*hyph_de" %{dictdir}/dictionary.lst
-then
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^HYPH[ \t]*de[ \t]*LU[ \t]*hyph_de" %{dictdir}/dictionary.lst; then
echo "HYPH de LU hyph_de" >> %{dictdir}/dictionary.lst
<<Diff was trimmed, longer than 597 lines>>
---- CVS-web:
http://cvs.pld-linux.org/SPECS/myspell-dictionaries.spec?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list