#!/bin/sh
if test -z "$KDECONFIG"; then
    KDECONFIG=kde-config
fi
LIBDIR="`$KDECONFIG --install data --expandvars`/dcopidlng"
trap "rm -f $tmpfile; exit 1" 1 2 3 5 15
tmpfile=`/bin/mktemp 2>/dev/null`
[ $? -eq 0 ] || exit 1
perl -I"$LIBDIR" "$LIBDIR/kalyptus" --allow_k_dcop_accessors -f dcopidl $1 2>$tmpfile
RET=$?
if [ $RET -ne 0 ]
then
   cat $tmpfile >&2
fi
rm $tmpfile
exit $RET
