summaryrefslogtreecommitdiffstats
path: root/win/tools/kmoc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-07 03:45:53 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-07 03:45:53 +0000
commit10308be19ef7fa44699562cc75946e7ea1fdf6b9 (patch)
tree4bc444c00a79e88105f2cfce5b6209994c413ca0 /win/tools/kmoc
parent307136d8eef0ba133b78ceee8e901138d4c996a1 (diff)
downloadtdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.tar.gz
tdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.zip
Revert automated changes
Sorry guys, they are just not ready for prime time Work will continue as always git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1212479 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'win/tools/kmoc')
-rwxr-xr-xwin/tools/kmoc14
1 files changed, 7 insertions, 7 deletions
diff --git a/win/tools/kmoc b/win/tools/kmoc
index 8f08c9b7d..2fef8ea60 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 tqmoc/ subdirectory.
-# Any additional arguments are directories - ktqmoc will be called for each of them.
+# .moc files are saved to moc/ subdirectory.
+# Any additional arguments are directories - kmoc will be called for each of them.
-mkdir -p tqmoc
-tqfind . -maxdepth 1 -name \*.h | while read ; do
+mkdir -p moc
+find . -maxdepth 1 -name \*.h | while read ; do
grep Q_OBJECT $REPLY > /dev/null || continue
- tqmoc=tqmoc/`echo $REPLY | sed -e "s/\\.h/\\.moc/;s/\\.\\///"`
- if [ $tqmoc -ot $REPLY ] ; then echo tqmocing $REPLY... ; tqmoc $REPLY -o $tqmoc ; fi
+ moc=moc/`echo $REPLY | sed -e "s/\\.h/\\.moc/;s/\\.\\///"`
+ if [ $moc -ot $REPLY ] ; then echo mocing $REPLY... ; moc $REPLY -o $moc ; fi
done
pwd=`pwd`
while [ $# -gt 0 ] ; do
- cd $pwd/$1 && ktqmoc
+ cd $pwd/$1 && kmoc
cd $pwd
shift
done