some more win32'fication to fix non-ascii filename handling
[kdelibs.git] / Messages.sh
blobefeb3e2edf86c9e93f15e892ebab32d1ed15aaee
1 #! /usr/bin/env bash
2 find . -type d | fgrep -v '.svn' | sed -e 's,$,/,' > dirs
3 msh=`find . -name Messages.sh`
4 for dir in $msh; do
5 dir=`dirname $dir`
6 if test "$dir" != "."; then
7 egrep -v "^$dir" dirs > dirs.new && mv dirs.new dirs
8 fi
9 done
10 fgrep -v "/tests" dirs > dirs.new && mv dirs.new dirs
11 # Include ./kdeui/colors/ explicitly to extract color dialog strings. It is
12 # otherwise excluded, since it has a local Messages.sh to extract color names.
13 echo "./kdeui/colors/" >> dirs
14 dirs=`cat dirs`
15 find $dirs -maxdepth 1 -name "*.cpp" -print > files
16 find $dirs -maxdepth 1 -name "*.cc" -print >> files
17 find $dirs -maxdepth 1 -name "*.h" -print >> files
18 $EXTRACTRC `find $dirs -maxdepth 1 \( -name \*.rc -o -name \*.ui -o -name \*.ui3 -o -name \*.ui4 -o -name \*.kcfg \) ` >> rc.cpp || exit 11
19 $XGETTEXT -ktranslate:1,1t -ktranslate:1c,2,2t --files-from=files -o $podir/kdelibs4.pot
20 rm -f dirs files