From 560378aaca1784ba19806a0414a32b20c744de39 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 3 Jan 2011 04:12:51 +0000 Subject: Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1 NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- win/tools/kmoc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'win/tools/kmoc') 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 -- cgit v1.2.1