1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/source4/script/build_idl.sh
Andrew Tridgell 15776970a5 we now use a copy of pidl inside the samba4 source tree at
source/build/pidl/

I imported the code using direct respository manipulation to preserve
the commit history
(This used to be commit 2ed87a52cc)
2003-11-20 22:46:01 +00:00

20 lines
487 B
Bash
Executable File

#!/bin/sh
FULLBUILD=$1
[ -d librpc/gen_ndr ] || mkdir -p librpc/gen_ndr || exit 1
[ -d librpc/gen_rpc ] || mkdir -p librpc/gen_rpc || exit 1
( cd build/pidl && make ) || exit 1
for f in librpc/idl/*.idl; do
base=`basename $f .idl`
ndr=librpc/gen_ndr/ndr_$base
if [ x$FULLBUILD = xFULL -o "$f" -nt $ndr.c ]; then
echo Processing $f
build/pidl/pidl.pl --output $ndr --parse --header --parser --client librpc/gen_rpc/rpc_$base.c $f || exit 1
fi
done
exit 0