File indexing completed on 2021-12-21 12:18:33

0001 #! /bin/sh
0002 $EXTRACTRC */*.rc >> rc.cpp || exit 11
0003 $EXTRACTRC */*.ui >> rc.cpp || exit 12
0004 (cd data && $PREPARETIPS > ../tips.cpp)
0005 for file in macros/*.kigt; do
0006         cat "$file" | grep '<Name>' | sed -e 's/^ *<Name>\([^<]*\)<\/Name>/i18n( "\1" );/' | sed -e 's/&amp;/\&/g' >> rc.cpp
0007         cat "$file" | grep '<Description>' | sed -e 's/^ *<Description>\([^<]*\)<\/Description>/i18n( "\1" );/' | sed -e 's/&amp;/\&/g' >> rc.cpp
0008         cat "$file" | grep '<UseText>' | sed -e 's/^ *<UseText>\([^<]*\)<\/UseText>/i18n( "\1" );/' | sed -e 's/&amp;/\&/g' >> rc.cpp
0009         cat "$file" | grep '<SelectStatement>' | sed -e 's/^ *<SelectStatement>\([^<]*\)<\/SelectStatement>/i18n( "\1" );/' | sed -e 's/&amp;/\&/g' >> rc.cpp
0010 done
0011 $XGETTEXT tips.cpp rc.cpp $(find . -name "*.cpp" -o -name "*.h" -o -name "*.cc") -o $podir/kig.pot
0012 rm -f tips.cpp