OSDN Git Service

kdecore: log debug message before and after the call in KAuthorization::execute()
[kde/kdelibs.git] / Messages.sh
1 #! /usr/bin/env bash
2 find . -type d | fgrep -v '.git' | 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 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
15 dirs=`cat 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
23 rm -f dirs files