diff options
author | Tim Potter <tpot@samba.org> | 2003-05-23 01:59:43 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2003-05-23 01:59:43 +0000 |
commit | 1f84a14b0bae513fc2fdad4fe6fca32e05af67bc (patch) | |
tree | 2068dd8b6b794b05941aea6ddf198bb5b798cef8 /source3/script | |
parent | 1df21141e7fd9a0e11ae1355b404413738ad0a9e (diff) | |
download | samba-1f84a14b0bae513fc2fdad4fe6fca32e05af67bc.tar.gz samba-1f84a14b0bae513fc2fdad4fe6fca32e05af67bc.tar.bz2 samba-1f84a14b0bae513fc2fdad4fe6fca32e05af67bc.zip |
Bug 83: fixes for building when $srcdir != $builddir from David Lee
<t.d.lee@durham.ac.uk>
(This used to be commit e48a8b5e9c1a75c6e4bffe022d0e25edae89bc58)
Diffstat (limited to 'source3/script')
-rwxr-xr-x | source3/script/mkproto.sh.in (renamed from source3/script/mkproto.sh) | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/script/mkproto.sh b/source3/script/mkproto.sh.in index 2bf96c9b41..8d7d300ff5 100755 --- a/source3/script/mkproto.sh +++ b/source3/script/mkproto.sh.in @@ -1,9 +1,13 @@ -#! /bin/sh +#! /bin/sh -x LANG=C; export LANG LC_ALL=C; export LC_ALL LC_COLLATE=C; export LC_COLLATE +# Need reference point for "mkproto.awk", including when "srcdir != builddir". +# Use of "abs_..." is unpleasant. Is there another way? +abs_srcdir=@abs_srcdir@ + if [ $# -lt 3 ] then echo "Usage: $0 awk [-h headerdefine] outputheader proto_obj" @@ -32,7 +36,7 @@ echo creating $header mkdir -p `dirname $header` ${awk} $headeropt \ - -f script/mkproto.awk $proto_src > $headertmp + -f $abs_srcdir/mkproto.awk $proto_src > $headertmp if cmp -s $header $headertmp 2>/dev/null then |