mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
15776970a5
source/build/pidl/
I imported the code using direct respository manipulation to preserve
the commit history
(This used to be commit 2ed87a52cc
)
20 lines
487 B
Bash
Executable File
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
|