]> git.pld-linux.org Git - packages/ZendFramework.git/commitdiff
- do not trip build root too early
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 22 Oct 2008 00:10:39 +0000 (00:10 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ZendFramework-find-lang.sh -> 1.3

ZendFramework-find-lang.sh

index 7ffc29abebe14e41eb09820a2cebb44561c4b718..de884e072a077a1198318587382214071240d129 100644 (file)
@@ -4,8 +4,6 @@ langfile=${1:-ZendFramework.lang}
 
 > $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 @@ find $dir -type f -name '*.xml' | while read file; do
        # TODO: <variant type="SAAHO"/>
 
        lang=$language${territory:+_$territory}${script:+@$script}
+       file=${file#$RPM_BUILD_ROOT}
        echo "%lang($lang) ${file#$RPM_BUILD_ROOT}" >> $langfile
 done
This page took 0.04021 seconds and 4 git commands to generate.