File indexing completed on 2024-04-14 14:53:46
0001 #!/bin/sh 0002 0003 # Extract strings from all source files. 0004 # EXTRACT_TR_STRINGS extracts strings with lupdate and convert them to .pot with 0005 # lconvert. 0006 0007 function find_files() 0008 { 0009 while IFS='' read -r line ; do 0010 if echo "$line" | grep -q "${1}_LIB_SRCS" > /dev/null; then 0011 while IFS=' ' read -a file ; do 0012 if [ "$file" == ")" ]; then 0013 break 0014 elif echo "$file" | grep -q "^\w*#" > /dev/null || [ ! -f "$file" ] || \ 0015 echo "$file" | grep -qv "\.cpp\w*$" > /dev/null; then 0016 continue 0017 fi 0018 echo $file 0019 done 0020 fi 0021 done < CMakeLists.txt 0022 } 0023 0024 $EXTRACT_TR_STRINGS `find_files kpropertycore` -o $podir/kpropertycore_qt.pot 0025 $EXTRACT_TR_STRINGS `find_files kpropertywidgets` -o $podir/kpropertywidgets_qt.pot