summaryrefslogtreecommitdiff
path: root/source4/script/mkproto.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source4/script/mkproto.sh')
-rw-r--r--source4/script/mkproto.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/source4/script/mkproto.sh b/source4/script/mkproto.sh
index 2bf96c9b41..43b0b52950 100644
--- a/source4/script/mkproto.sh
+++ b/source4/script/mkproto.sh
@@ -6,16 +6,16 @@ LC_COLLATE=C; export LC_COLLATE
if [ $# -lt 3 ]
then
- echo "Usage: $0 awk [-h headerdefine] outputheader proto_obj"
+ echo "Usage: $0 perl [-h headerdefine] outputheader proto_obj"
exit 1
fi
-awk="$1"
+perl="$1"
shift
if [ x"$1" = x-h ]
then
- headeropt="-v headername=$2"
+ headeropt="-h $2"
shift; shift;
else
headeropt=""
@@ -31,8 +31,7 @@ echo creating $header
mkdir -p `dirname $header`
-${awk} $headeropt \
- -f script/mkproto.awk $proto_src > $headertmp
+${perl} script/mkproto.pl $headeropt $proto_src > $headertmp
if cmp -s $header $headertmp 2>/dev/null
then