Fix build on some systems : don't pass libraries to mkproto.awk
authorMichael Adam <obnox@samba.org>
Mon, 25 Feb 2008 16:24:52 +0000 (17:24 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 25 Feb 2008 16:24:52 +0000 (17:24 +0100)
Currently, some static libraries have gone into object lists
that are also passed to make proto. (This should probably be
changed...) Then some awk versions fail when passed an non-
existing lib/libtdb.a e.g.. This patch changes mkproto.sh to
exclude \.a files from the list of files to process.

Michael
(This used to be commit 826b9ab07b58ca39350cca921002a4213ce7c7c9)

source3/script/mkproto.sh

index e46e73e3e9074be56386c5ddfdd50a60b2061788..8561f42dff011db0570ae08fa12c330a03eb234d 100755 (executable)
@@ -25,7 +25,7 @@ header="$1"
 shift
 headertmp="$header.$$.tmp~"
 
-proto_src="`echo $@ | tr ' ' '\n' | sed -e 's/\.o/\.c/g' | sort | uniq | egrep -v 'tdb/|wrapped|modules/getdate'`"
+proto_src="`echo $@ | tr ' ' '\n' | sed -e 's/\.o/\.c/g' | sort | uniq | egrep -v 'tdb/|wrapped|modules/getdate' | egrep -v '\.a$'`"
 
 echo creating $header