summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsource4/script/build_idl.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/script/build_idl.sh b/source4/script/build_idl.sh
index f39fab3a65..c96cca0c79 100755
--- a/source4/script/build_idl.sh
+++ b/source4/script/build_idl.sh
@@ -20,7 +20,8 @@ list=""
for f in librpc/idl/*.idl; do
basename=`basename $f .idl`
- if [ "$f" -nt librpc/gen_ndr/ndr_$basename.c ]; then
+ ndr="librpc/gen_ndr/ndr_$basename.c"
+ if [ "$f" -nt $ndr -o ! -f $ndr ]; then
list="$list $f"
fi
done