summaryrefslogtreecommitdiff
path: root/source3/script
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-15 01:53:09 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-15 01:53:09 +0200
commit4f6a4b55101f9b2c5356eda43b0f56fa61ce5775 (patch)
tree9bfeb336b073c74de2f3161cff45af03d6d6aaa1 /source3/script
parent4999c5b2b95bca8e30653a6ce4e6623e6977102e (diff)
downloadsamba-4f6a4b55101f9b2c5356eda43b0f56fa61ce5775.tar.gz
samba-4f6a4b55101f9b2c5356eda43b0f56fa61ce5775.tar.bz2
samba-4f6a4b55101f9b2c5356eda43b0f56fa61ce5775.zip
Share idl_types.h.
Diffstat (limited to 'source3/script')
-rwxr-xr-xsource3/script/build_idl.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/script/build_idl.sh b/source3/script/build_idl.sh
index 75f8612957..34f262ee00 100755
--- a/source3/script/build_idl.sh
+++ b/source3/script/build_idl.sh
@@ -1,14 +1,14 @@
#!/bin/sh
-PIDL_ARGS="--outputdir librpc/gen_ndr --header --ndr-parser --samba3-ndr-server --samba3-ndr-client --"
-PIDL_EXTRA_ARGS="$*"
+ARGS="--includedir=../librpc/idl --outputdir librpc/gen_ndr --header --ndr-parser --samba3-ndr-server --samba3-ndr-client $PIDL_ARGS --"
+IDL_FILES="$*"
oldpwd=`pwd`
cd ${srcdir}
[ -d librpc/gen_ndr ] || mkdir -p librpc/gen_ndr || exit 1
-PIDL="$PIDL ${PIDL_ARGS} ${PIDL_EXTRA_ARGS}"
+PIDL="$PIDL $ARGS"
##
## Find newer files rather than rebuild all of them
@@ -20,11 +20,11 @@ for f in ${IDL_FILES}; do
ndr="librpc/gen_ndr/ndr_$basename.c"
if [ -f $ndr ]; then
- if [ "x`find ${IDL_PATH}/$f -newer $ndr -print`" = "x${IDL_PATH}/$f" ]; then
- list="$list ${IDL_PATH}/$f"
+ if [ "x`find $f -newer $ndr -print`" = "x$f" ]; then
+ list="$list $f"
fi
else
- list="$list ${IDL_PATH}/$f"
+ list="$list $f"
fi
done