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