moved the pidl auto-generated files out of CVS
[sfrench/samba-autobuild/.git] / source / script / build_idl.sh
1 #!/bin/sh
2
3 FULLBUILD=$1
4
5 [ -d librpc/gen_ndr ] || mkdir -p librpc/gen_ndr || exit 1
6 [ -d librpc/gen_rpc ] || mkdir -p librpc/gen_rpc || exit 1
7
8 for f in librpc/idl/*.idl; do
9     base=`basename $f .idl`
10     ndr=librpc/gen_ndr/ndr_$base
11     if [ x$FULLBUILD = xFULL -o "$f" -nt $ndr.c ]; then
12       echo Processing $f
13       pidl.pl --output $ndr --parse --header --parser --client librpc/gen_rpc/rpc_$base.c $f || exit 1
14     fi
15 done
16
17 exit 0