summaryrefslogtreecommitdiff
path: root/pango/check.defs
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-08-16 07:23:08 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-08-16 07:23:08 +0000
commitbb26941a468b994331286a55d41447cc2ef9326f (patch)
tree7e38be8a1800f49aeed0e0b54e8e74524124a46c /pango/check.defs
parent292545e94970319545d1a2d8a5ebb700ade67565 (diff)
downloadpango-bb26941a468b994331286a55d41447cc2ef9326f.tar.gz
Render block progression and line direction arrows, and a base gravity
2006-08-16 Behdad Esfahbod <behdad@gnome.org> * examples/viewer-pangocairo.c (render_callback): Render block progression and line direction arrows, and a base gravity roof-top. * pango/pango-matrix.c (pango_matrix_to_gravity): New function. * pango/pango-utils.c (pango_gravity_to_rotation): New function. * pango/pangocairo-fcfont.c (_pango_cairo_fc_font_new): Use pango_gravity_to_rotation(). * pango/pango-utils.h: * pango/pango-types.h: Reorder a bit. * examples/Makefile.am: * examples/test-chinese.txt: New test text for Chinese. * pango/check.defs: New script that checks that all the exported symbols are listed in the respective .def file. (only checks the libraries actually built. No win32 for example.) * pango/Makefile.am: Hook check.defs as a 'make check' test. * pango/pango.def: * pango/pangoft2.def: * pango/pangocairo.def: Update. * docs/tmpl/glyphs.sgml: * docs/tmpl/main.sgml: * docs/pango-sections.txt: Update.
Diffstat (limited to 'pango/check.defs')
-rwxr-xr-xpango/check.defs23
1 files changed, 23 insertions, 0 deletions
diff --git a/pango/check.defs b/pango/check.defs
new file mode 100755
index 00000000..a4d0a67f
--- /dev/null
+++ b/pango/check.defs
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+LANG=C
+
+test -z "$srcdir" && srcdir=.
+status=0
+
+for def in $srcdir/*.def; do
+ lib=${def%.def}
+ lib=${lib##*/}
+ so=.libs/lib${lib}-1.0.so
+
+ test -f $so || continue
+ echo Checking $def
+
+ nm $so | grep ' T ' | cut -d' ' -f3 | sort -u > NM
+ cut -f 2 $def | grep -v '^EXPORTS$' > DEF
+
+ diff DEF NM || status=1
+ rm -f DEF NM
+done
+
+exit $status