diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-12-16 15:42:47 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-12-16 15:42:47 +0100 |
commit | b2a01ef5dd66618a130e2a1d4cc1d755ba3624a8 (patch) | |
tree | ede4e72f9bd3618a7a3a3be5e7ad052681a0235c /source3/script/build_idl.sh | |
parent | a7109b183b555ee795c3e32c63e2647025705fc1 (diff) | |
download | samba-b2a01ef5dd66618a130e2a1d4cc1d755ba3624a8.tar.gz samba-b2a01ef5dd66618a130e2a1d4cc1d755ba3624a8.tar.bz2 samba-b2a01ef5dd66618a130e2a1d4cc1d755ba3624a8.zip |
Consider shared IDL files and Samba3-specific IDL files separately, allow overriding output directory.
Diffstat (limited to 'source3/script/build_idl.sh')
-rwxr-xr-x | source3/script/build_idl.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/script/build_idl.sh b/source3/script/build_idl.sh index 34f262ee00..0f4908114e 100755 --- a/source3/script/build_idl.sh +++ b/source3/script/build_idl.sh @@ -1,12 +1,12 @@ #!/bin/sh -ARGS="--includedir=../librpc/idl --outputdir librpc/gen_ndr --header --ndr-parser --samba3-ndr-server --samba3-ndr-client $PIDL_ARGS --" +ARGS="--includedir=../librpc/idl --outputdir $PIDL_OUTPUTDIR --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 +[ -d $PIDL_OUTPUTDIR ] || mkdir -p $PIDL_OUTPUTDIR || exit 1 PIDL="$PIDL $ARGS" @@ -17,7 +17,7 @@ PIDL="$PIDL $ARGS" list="" for f in ${IDL_FILES}; do basename=`basename $f .idl` - ndr="librpc/gen_ndr/ndr_$basename.c" + ndr="$PIDL_OUTPUTDIR/ndr_$basename.c" if [ -f $ndr ]; then if [ "x`find $f -newer $ndr -print`" = "x$f" ]; then |