diff options
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 |