summaryrefslogtreecommitdiffstats
path: root/win/tools/kdcopidl
diff options
context:
space:
mode:
Diffstat (limited to 'win/tools/kdcopidl')
-rwxr-xr-xwin/tools/kdcopidl25
1 files changed, 25 insertions, 0 deletions
diff --git a/win/tools/kdcopidl b/win/tools/kdcopidl
new file mode 100755
index 000000000..f695659d7
--- /dev/null
+++ b/win/tools/kdcopidl
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+# runs kdcopidl for current dir
+# or for $1 dir, (and $2, $3, $4, $5), whatever is provided
+
+if [ -n "$1" ] ; then
+ dir="$1"
+else
+ dir="."
+fi
+
+find $dir -maxdepth 1 -name \*.h | while read ; do
+ grep K_DCOP $REPLY > /dev/null || continue
+ name=`echo $REPLY | sed -e "s/\\.h//"`
+ if [ $name".kidl" -ot $REPLY -o ! -f $name".kidl" -o ! -f $name"_skel.cpp" -o ! -f $name"_stub.cpp" ] ; then
+ echo DCOPIDL for $REPLY...
+ dcopidl $REPLY > $name".kidl"
+ dcopidl2cpp $name".kidl"
+ fi
+done
+
+[ -n "$2" ] && kdcopidl $2
+[ -n "$3" ] && kdcopidl $3
+[ -n "$4" ] && kdcopidl $4
+[ -n "$5" ] && kdcopidl $5