SPECS: koffice-module-l10n.spec - without subshells :)

glen glen at pld-linux.org
Mon Nov 6 12:55:05 CET 2006


Author: glen                         Date: Mon Nov  6 11:55:05 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- without subshells :)

---- Files affected:
SPECS:
   koffice-module-l10n.spec (1.29 -> 1.30) 

---- Diffs:

================================================================
Index: SPECS/koffice-module-l10n.spec
diff -u SPECS/koffice-module-l10n.spec:1.29 SPECS/koffice-module-l10n.spec:1.30
--- SPECS/koffice-module-l10n.spec:1.29	Mon Nov  6 12:46:12 2006
+++ SPECS/koffice-module-l10n.spec	Mon Nov  6 12:54:59 2006
@@ -427,9 +427,11 @@
 	cat ${i}.lang >> kword.lang
 done
 
-for i in $RPM_BUILD_ROOT%{_datadir}/apps/koffice/autocorrect/*.xml; do
-	z=`echo ${i}|sed -e "s|$RPM_BUILD_ROOT%{_datadir}/apps/koffice/autocorrect/||g" -e 's|\.xml||g'`
-	echo "%lang(${z}) %{_datadir}/apps/koffice/autocorrect/${z}.xml" >> koffice.lang
+for a in $RPM_BUILD_ROOT%{_datadir}/apps/koffice/autocorrect/*.xml; do
+	t=${a##*autocorrect/}
+	lang=${t%.xml}
+	path=${a#$RPM_BUILD_ROOT}
+	echo "%lang($lang) $path" >> koffice.lang
 done
 
 %clean
@@ -464,6 +466,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.30  2006/11/06 11:54:59  glen
+- without subshells :)
+
 Revision 1.29  2006/11/06 11:46:12  glen
 - hey, i packaged all files!!
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/koffice-module-l10n.spec?r1=1.29&r2=1.30&f=u



More information about the pld-cvs-commit mailing list