SOURCES: ZendFramework-find-lang.sh - do not trip build root too early

glen glen at pld-linux.org
Wed Oct 22 02:10:45 CEST 2008


Author: glen                         Date: Wed Oct 22 00:10:45 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- do not trip build root too early

---- Files affected:
SOURCES:
   ZendFramework-find-lang.sh (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SOURCES/ZendFramework-find-lang.sh
diff -u SOURCES/ZendFramework-find-lang.sh:1.2 SOURCES/ZendFramework-find-lang.sh:1.3
--- SOURCES/ZendFramework-find-lang.sh:1.2	Wed Oct 22 01:10:33 2008
+++ SOURCES/ZendFramework-find-lang.sh	Wed Oct 22 02:10:39 2008
@@ -4,8 +4,6 @@
 
 > $langfile
 find $dir -type f -name '*.xml' | while read file; do
-	file=${file#$RPM_BUILD_ROOT}
-
 	case "${file##*/}" in
 	supplementalData.xml)
 		# skip - no lang tag for this one
@@ -25,5 +23,6 @@
 	# TODO: <variant type="SAAHO"/>
 
 	lang=$language${territory:+_$territory}${script:+@$script}
+	file=${file#$RPM_BUILD_ROOT}
 	echo "%lang($lang) ${file#$RPM_BUILD_ROOT}" >> $langfile
 done
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/ZendFramework-find-lang.sh?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list