[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/kde4-l10n/scripts
From:       Nicolas Goutte <nicolasg () snafu ! de>
Date:       2006-01-28 17:41:29
Message-ID: 1138470089.854807.23071.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 503288 by goutte:

While filtering the Makefile.am, skip lines starting with "include" inside
the Perl program instead of calling an extra egrep.


 M  +1 -1      extract-messages.sh  


--- branches/work/kde4-l10n/scripts/extract-messages.sh #503287:503288
@@ -19,7 +19,7 @@
 	echo 'i18n("EMAIL OF TRANSLATORS","Your emails");' >> _translatorinfo.cpp
    else echo " " > _translatorinfo.cpp
    fi
-   perl -e '$mes=0; while (<STDIN>) { next if (/^(if\s|else\s|endif)/); if \
(/^messages:/) { $mes=1; print $_; next; } if ($mes) { if (/\$\(XGETTEXT\)/ && / -o/) \
{ s/ -o \$\(podir\)/ _translatorinfo.cpp -o \$\(podir\)/ } print $_; } else { print \
$_; } }' < Makefile.am | egrep -v '^include ' > _transMakefile +   perl -e '$mes=0; \
while (<STDIN>) { next if (/^(if\s|else\s|endif|include\s)/); if (/^messages:/) { \
$mes=1; print $_; next; } if ($mes) { if (/\$\(XGETTEXT\)/ && / -o/) { s/ -o \
\$\(podir\)/ _translatorinfo.cpp -o \$\(podir\)/ } print $_; } else { print $_; } }' \
< Makefile.am > _transMakefile  
    kdepotpath=${includedir:-`kde-config --expandvars --install include`}/kde.pot
    if ! test -f $kdepotpath; then


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic