diff options
Diffstat (limited to 'win/tools/kmoc')
-rwxr-xr-x | win/tools/kmoc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/win/tools/kmoc b/win/tools/kmoc index 2fef8ea60..8f08c9b7d 100755 --- a/win/tools/kmoc +++ b/win/tools/kmoc @@ -1,19 +1,19 @@ #!/bin/bash # Creates KDE-compatible .moc files out of .h files in current directory -# .moc files are saved to moc/ subdirectory. -# Any additional arguments are directories - kmoc will be called for each of them. +# .moc files are saved to tqmoc/ subdirectory. +# Any additional arguments are directories - ktqmoc will be called for each of them. -mkdir -p moc -find . -maxdepth 1 -name \*.h | while read ; do +mkdir -p tqmoc +tqfind . -maxdepth 1 -name \*.h | while read ; do grep Q_OBJECT $REPLY > /dev/null || continue - moc=moc/`echo $REPLY | sed -e "s/\\.h/\\.moc/;s/\\.\\///"` - if [ $moc -ot $REPLY ] ; then echo mocing $REPLY... ; moc $REPLY -o $moc ; fi + tqmoc=tqmoc/`echo $REPLY | sed -e "s/\\.h/\\.moc/;s/\\.\\///"` + if [ $tqmoc -ot $REPLY ] ; then echo tqmocing $REPLY... ; tqmoc $REPLY -o $tqmoc ; fi done pwd=`pwd` while [ $# -gt 0 ] ; do - cd $pwd/$1 && kmoc + cd $pwd/$1 && ktqmoc cd $pwd shift done |