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

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/dataengines/weather
From:       Karl Ove Hufthammer <karl () huftis ! org>
Date:       2009-08-18 11:48:48
Message-ID: 1250596128.632094.26849.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1012918 by huftis:

Add line numbers to source references.

 M  +4 -1      Messages.sh  


--- trunk/KDE/kdebase/workspace/plasma/dataengines/weather/Messages.sh \
#1012917:1012918 @@ -1,7 +1,10 @@
 #! /usr/bin/env bash
 for file in ions/data/*.dat
 do
-  grep '|' $file | awk -F'|' '{ print "// i18n: file: '`basename $file`'"; \
printf("i18nc(\"%s\", \"%s\");\n", $1, $2) }' >> rc.cpp +  awk -F'|' '$0 ~ /\|/ {
+                         print "// i18n: file: '`basename $file`':"NR;
+                         printf("i18nc(\"%s\", \"%s\");\n", $1, $2)
+                       }' $file >> rc.cpp
 done
 
 $XGETTEXT `find . -name \*.cpp` -o $podir/plasma_engine_weather.pot


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

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