6 # Extract symbols to export from C-header files.
7 # output in version-script format for linking shared libraries.
9 # This is the shell wrapper for the mksyms.awk core script.
11 # Copyright (C) 2008 Michael Adam <obnox@samba.org>
15 LC_ALL
=C
; export LC_ALL
16 LC_COLLATE
=C
; export LC_COLLATE
20 echo "Usage: $0 awk output_file header_files"
29 symsfile_tmp
="$symsfile.$$.tmp~"
31 proto_src
="`echo $@ | tr ' ' '\n' | sort | uniq `"
33 echo creating
$symsfile
35 mkdir
-p `dirname $symsfile`
37 ${awk} -f `dirname $0`/mksyms.
awk $proto_src > $symsfile_tmp
39 if cmp -s $symsfile $symsfile_tmp 2>/dev
/null
41 echo "$symsfile unchanged"
44 mv $symsfile_tmp $symsfile