From: Duncan C. <dun...@us...> - 2005-01-10 17:25:38
|
Update of /cvsroot/gtk2hs/gtk2hs/tools/apicoverage In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5659/tools/apicoverage Modified Files: Makefile Log Message: update regexps to match the output of current versions of c2hs. The apicoverage tool should now be accurate. Index: Makefile =================================================================== RCS file: /cvsroot/gtk2hs/gtk2hs/tools/apicoverage/Makefile,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Makefile 3 Aug 2004 02:40:13 -0000 1.4 +++ Makefile 10 Jan 2005 17:25:27 -0000 1.5 @@ -1,9 +1,9 @@ # system to help check gtk2hs's api coverage -# which vesion of gtk+ to compare against, eg 2.0.9, 2.2.4, 2.4.4 +# which vesion of gtk+ to compare against, eg 2.0.9, 2.2.4, 2.4.13 GTK_MAJOR_VERSION = 2 -GTK_MINOR_VERSION = 2 -GTK_MICRO_VERSION = 0 +GTK_MINOR_VERSION = 6 +GTK_MICRO_VERSION = 1 GTK_VERSION = $(GTK_MAJOR_VERSION).$(GTK_MINOR_VERSION).$(GTK_MICRO_VERSION) @@ -20,8 +20,9 @@ GTK_CHS_FILES = $(shell find ../../gtk -name '*.chs') gtk.coverage : $(GTK_CHS_FILES) - grep -h 'foreign import ccall \(unsafe \)\?" \?&\?.*"' `find ../../gtk -name '*.hs'` | \ - sed 's:foreign import ccall \(unsafe \)\?" \?&\?\(.*\)".*:\2:' | \ + grep -h 'foreign import ccall \(safe \|unsafe \)\?" \?&\?.*"' \ + `find ../../gtk -name '*.hs'` | \ + sed 's:foreign import ccall \(safe \|unsafe \)\?" \?&\?\(.*\)".*:\2:' | \ sort -u | grep '^gtk_' | grep --invert-match '_get_type$$' > gtk.coverage # We can have (optional) api.ignore files in the gtk directories to have a |