s3-torture: run_fdsesstest(): replace cli_read_old() with cli_read()
[Samba/gebeck_regimport.git] / source4 / librpc / scripts / build_idl.sh
blob714f6d1f6ad686c9ac10d0edeb9e502a1bb5c8e4
1 #!/bin/sh
3 FULLBUILD=$1
4 OUTDIR=$2
5 shift 2
6 IDL_FILES="$*"
8 [ -d $OUTDIR ] || mkdir -p $OUTDIR || exit 1
10 PIDL="$PIDL --outputdir $OUTDIR --header --ndr-parser --server --client --python --dcom-proxy --com-header --includedir ../librpc/idl -- "
12 if [ x$FULLBUILD = xFULL ]; then
13 echo Rebuilding all idl files in $IDLDIR
14 $PIDL $IDL_FILES || exit 1
15 exit 0
18 list=""
20 for f in $IDL_FILES ; do
21 basename=`basename $f .idl`
22 ndr="$OUTDIR/ndr_$basename.c"
23 # blergh - most shells don't have the -nt function
24 if [ -f $ndr ]; then
25 if [ x`find $f -newer $ndr -print` = x$f ]; then
26 list="$list $f"
28 else
29 list="$list $f"
31 done
33 if [ "x$list" != x ]; then
34 $PIDL $list || exit 1
37 exit 0