summaryrefslogtreecommitdiff
path: root/lib/talloc/script/mksyms.sh
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2009-10-14 10:20:28 -0400
committerSimo Sorce <idra@samba.org>2009-10-14 11:05:51 -0400
commit2d6d6bcb5de87ce0dbce13ff6bc775b953438b75 (patch)
tree83efa7e5d70e13b98dd0a917eb79888171ce4936 /lib/talloc/script/mksyms.sh
parent075303560f545e59128a1bb16d6128a165830288 (diff)
downloadsamba-2d6d6bcb5de87ce0dbce13ff6bc775b953438b75.tar.gz
samba-2d6d6bcb5de87ce0dbce13ff6bc775b953438b75.tar.bz2
samba-2d6d6bcb5de87ce0dbce13ff6bc775b953438b75.zip
talloc: Change the way mksysms work
Make sure we always have a sorted (per file) export file. This way we can directly compare the real export and the check file w/o having to further sort things. Also return error code from abi_checks.sh if warnings were reported
Diffstat (limited to 'lib/talloc/script/mksyms.sh')
-rwxr-xr-xlib/talloc/script/mksyms.sh19
1 files changed, 18 insertions, 1 deletions
diff --git a/lib/talloc/script/mksyms.sh b/lib/talloc/script/mksyms.sh
index 714d55abae..089344f8f0 100755
--- a/lib/talloc/script/mksyms.sh
+++ b/lib/talloc/script/mksyms.sh
@@ -34,7 +34,24 @@ echo creating $symsfile
mkdir -p `dirname $symsfile`
-${awk} -f `dirname $0`/mksyms.awk $proto_src > $symsfile_tmp
+#Write header
+cat > $symsfile_tmp << EOF
+# This file is autogenerated, please DO NOT EDIT
+{
+ global:
+EOF
+
+#loop on each header
+for i in $proto_src; do
+${awk} -f `dirname $0`/mksyms.awk $i | sort >> $symsfile_tmp
+done;
+
+#Write tail
+cat >> $symsfile_tmp << EOF
+
+ local: *;
+};
+EOF
if cmp -s $symsfile $symsfile_tmp 2>/dev/null
then