Changeset View
Changeset View
Standalone View
Standalone View
src/Messages.sh
1 | #! /bin/sh | 1 | #! /bin/sh | ||
---|---|---|---|---|---|
2 | source ../kexi_xgettext.sh | 2 | source ../kundo2_aware_xgettext.sh | ||
3 | 3 | | |||
4 | potfile=kexi.pot | 4 | potfile=kexi.pot | ||
5 | find_exclude $potfile | 5 | find_exclude $potfile | ||
6 | 6 | | |||
7 | LIST="`find . \( $EXCLUDE \) -prune -o \( -name \*.ui \) -type f -print | grep -v -e '/\.'`" | 7 | LIST="`find . \( $EXCLUDE \) -prune -o \( -name \*.ui \) -type f -print | grep -v -e '/\.'`" | ||
8 | if test -n "$LIST"; then | 8 | if test -n "$LIST"; then | ||
9 | $EXTRACTRC $LIST >> rc.cpp | 9 | $EXTRACTRC $LIST >> rc.cpp | ||
10 | fi | 10 | fi | ||
11 | 11 | | |||
12 | # Exclude files containing "#warning noi18n" | 12 | # Exclude files containing "#warning noi18n" | ||
13 | LIST=`find . \( $EXCLUDE \) -prune -o \( -name \*.h -o -name \*.cpp -o -name \*.cc -o -name \*.hxx -o -name \*.cxx \) -type f -print | sort | while read f ; do \ | 13 | LIST=`find . \( $EXCLUDE \) -prune -o \( -name \*.h -o -name \*.cpp -o -name \*.cc -o -name \*.hxx -o -name \*.cxx \) -type f -print | sort | while read f ; do \ | ||
14 | if ! grep -q '^#warning noi18n ' $f ; then echo $f; fi \ | 14 | if ! grep -q '^#warning noi18n ' $f ; then echo $f; fi \ | ||
15 | done \ | 15 | done \ | ||
16 | ` | 16 | ` | ||
17 | kexi_xgettext $potfile $LIST | 17 | kundo2_aware_xgettext $potfile $LIST | ||
18 | rm -f rc.cpp | 18 | rm -f rc.cpp |