From 6a991bb9b027e64e27f7a661b236b4ad70daeeda Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 15 Nov 2003 21:25:03 +0000 Subject: simple method for auto-building rpc files if idl changes, and auto-building proto.h if it doesn't exist. This should make life a little easier for developers (This used to be commit ab5939e79600841c5e7e31e9da8742bf2da4a184) --- source4/script/build_idl.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'source4/script') diff --git a/source4/script/build_idl.sh b/source4/script/build_idl.sh index 24f18be2ef..cb81e4de74 100755 --- a/source4/script/build_idl.sh +++ b/source4/script/build_idl.sh @@ -1,10 +1,14 @@ -#!/bin/bash +#!/bin/sh + +FULLBUILD=$1 for f in librpc/idl/*.idl; do - echo Processing $f base=`basename $f .idl` ndr=librpc/ndr/ndr_$base - pidl.pl --output $ndr --parse --header --parser --client librpc/rpc/rpc_$base.c $f || exit 1 + if [ x$FULLBUILD = xFULL -o "$f" -nt $ndr.c ]; then + echo Processing $f + pidl.pl --output $ndr --parse --header --parser --client librpc/rpc/rpc_$base.c $f || exit 1 + fi done exit 0 -- cgit