3 if [ "$1" = "--full" ]; then
10 ARGS="--outputdir $PIDL_OUTPUTDIR --header --ndr-parser --samba3-ndr-server --server --client --python --dcom-proxy --com-header $PIDL_ARGS --"
16 [ -d $PIDL_OUTPUTDIR ] || mkdir -p $PIDL_OUTPUTDIR || exit 1
18 PIDL_DIR=`dirname $PIDL`
19 PIDL_CMD="$PIDL $ARGS"
21 if [ $FULL = 1 ]; then
22 echo "Rebuilding all idl files"
23 $PIDL_CMD $IDL_FILES || exit 1
28 ## Find newer files rather than rebuild all of them. Also handle the case
29 ## where the pidl compiler itself is newer.
31 PIDL_NEWEST=$(ls -rt $(find $PIDL_DIR -type f) | tail -n -1)
34 for f in ${IDL_FILES}; do
36 outfiles="$b.h ndr_${b}_c.c ndr_$b.h ndr_${b}_s.c srv_$b.c"
37 outfiles="$outfiles ndr_$b.c ndr_${b}_c.h py_$b.c srv_$b.h"
39 for o in $outfiles; do
40 [ -f $PIDL_OUTPUTDIR/$o ] || {
44 test "`find $f -newer $PIDL_OUTPUTDIR/$o`" != "" && {
48 test "`find $PIDL_NEWEST -newer $PIDL_OUTPUTDIR/$o`" != "" && {
56 ## generate the ndr stubs
59 if [ "x$list" != x ]; then
60 # echo "${PIDL_CMD} ${list}"
61 $PIDL_CMD $list || exit 1