From kde-commits Tue Aug 18 11:48:48 2009 From: Karl Ove Hufthammer Date: Tue, 18 Aug 2009 11:48:48 +0000 To: kde-commits Subject: KDE/kdebase/workspace/plasma/dataengines/weather Message-Id: <1250596128.632094.26849.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=125059614027623 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