2 find . -type d | fgrep -v '.git' | sed -e 's,$,/,' > dirs
3 msh=`find . -name Messages.sh`
6 if test "$dir" != "."; then
7 egrep -v "^$dir" dirs > dirs.new && mv dirs.new dirs
10 fgrep -v "/tests" dirs > dirs.new && mv dirs.new dirs
11 fgrep -v "/test/" dirs > dirs.new && mv dirs.new dirs
12 # Include ./kdeui/colors/ explicitly to extract color dialog strings. It is
13 # otherwise excluded, since it has a local Messages.sh to extract color names.
14 echo "./kdeui/colors/" >> dirs
16 find $dirs -maxdepth 1 -name "*.cpp" -print > files
17 find $dirs -maxdepth 1 -name "*.cc" -print >> files
18 find $dirs -maxdepth 1 -name "*.h" -print >> files
19 # Add the kdecore/date files
20 find ./kdecore/date -name "*.cpp" -o -name "*.cc" -o -name "*.h" >> files
21 $EXTRACTRC `find $dirs -maxdepth 1 \( -name \*.rc -o -name \*.ui -o -name \*.kcfg \) ` >> rc.cpp || exit 11
22 $XGETTEXT -ktranslate:1,1t -ktranslate:1c,2,2t --files-from=files -o $podir/kdelibs4.pot