use 'grep -o' to extract _get_type functions from header files. this

2007-12-03 15:18:17  Tim Janik  <timj@imendio.com>

        * gtk/Makefile.am (gtktypefuncs.c): use 'grep -o' to extract _get_type
        functions from header files. this should be portable across linux and
        Mac OS, unlike the previpous sed expression.



svn path=/trunk/; revision=19098
This commit is contained in:
15:18:17 Tim Janik 2007-12-03 14:17:31 +00:00 committed by Tim Janik
parent 48110a5013
commit f83588f87e
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2007-12-03 15:18:17 Tim Janik <timj@imendio.com>
* gtk/Makefile.am (gtktypefuncs.c): use 'grep -o' to extract _get_type
functions from header files. this should be portable across linux and
Mac OS, unlike the previpous sed expression.
2007-12-1 Cody Russell <bratsche@gnome.org>
* gtk/gtkpaned.c: (gtk_paned_set_position) [Win32]:
@ -13,7 +19,7 @@
* gtk/gtkrc.c: Fix doc typos. (#500672, David Lambert)
2007-11-29 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenuitem.c (gtk_menu_item_paint): Remove leftover
debug spew.

View File

@ -815,8 +815,7 @@ gtktypebuiltins.c: @REBUILD@ $(gtk_public_h_sources) gtktypebuiltins.c.template
gtktypefuncs.c: @REBUILD@ $(top_srcdir)/gtk/*.h $(top_srcdir)/gdk/*.h Makefile
echo '#include <gtk/gtk.h>' > xgen-gtfsrc.c && \
${CPP} $(DEFS) $(INCLUDES) -DGTK_ENABLE_BROKEN $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) xgen-gtfsrc.c | \
egrep '\<g[td]k_[a-zA-Z0-9_]+_get_type\>' | \
sed -e 's/.*\(\<g[td]k_[a-zA-Z0-9_]\+_get_type\>\).*/\1/' | \
grep -o '\bg[td]k_[a-zA-Z0-9_]*_get_type\b' | \
sort | uniq | \
sed '{ s/^/vgt=/; s/$$/();/; }' > xgen-gtf \
&& cp xgen-gtf $@ && rm -f xgen-gtf