












@echo OFF

cd ..\gtksourceview

if exist gtksource-enumtypes.h del gtksource-enumtypes.h
if exist gtksource-enumtypes.c del gtksource-enumtypes.c

call perl %1\bin\glib-mkenums ^
--fhead "#ifdef HAVE_CONFIG_H\n" ^
--fhead "#include \"config.h\"\n" ^
--fhead "#endif\n\n" ^
--fhead "#include <glib-object.h>\n" ^
--fhead "#include \"gtksource-enumtypes.h\"\n\n" ^
--fprod "\n/* enumerations from \"@filename@\" */" ^
--vhead "static const G@Type@Value _@enum_name@_values[] = {" ^
--vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," ^
--vtail "  { 0, NULL, NULL }\n};\n\n" ^
--vtail "GType\n@enum_name@_get_type (void)\n{\n" ^
--vtail "  static GType type = 0;\n\n" ^
--vtail "  if (!type)\n" ^
--vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" ^
--vtail "  return type;\n}\n\n" ^
gtksource.h ^
gtksourceautocleanups.h ^
gtksourcebuffer.h ^
gtksourcecompletion.h ^
gtksourcecompletioncontext.h ^
gtksourcecompletioninfo.h ^
gtksourcecompletionitem.h ^
gtksourcecompletionproposal.h ^
gtksourcecompletionprovider.h ^
gtksourceencoding.h ^
gtksourcefile.h ^
gtksourcefileloader.h ^
gtksourcefilesaver.h ^
gtksourcegutter.h ^
gtksourcegutterrenderer.h ^
gtksourcegutterrendererpixbuf.h ^
gtksourcegutterrenderertext.h ^
gtksourceinit.h ^
gtksourcelanguage.h ^
gtksourcelanguagemanager.h ^
gtksourcemap.h ^
gtksourcemark.h ^
gtksourcemarkattributes.h ^
gtksourceprintcompositor.h ^
gtksourceregion.h ^
gtksourcesearchcontext.h ^
gtksourcesearchsettings.h ^
gtksourcespacedrawer.h ^
gtksourcestyle.h ^
gtksourcestylescheme.h ^
gtksourcestyleschemechooser.h ^
gtksourcestyleschemechooserbutton.h ^
gtksourcestyleschemechooserwidget.h ^
gtksourcestyleschememanager.h ^
gtksourcetag.h ^
gtksourcetypes.h ^
gtksourceundomanager.h ^
gtksourceutils.h ^
gtksourceview.h ^
&1> gtksource-enumtypes.c

call perl %1\bin\glib-mkenums ^
--fhead "#ifndef GTKSOURCEVIEW_ENUMTYPES_H\n" ^
--fhead "#define GTKSOURCEVIEW_ENUMTYPES_H\n\n" ^
--ftail "#endif /* GTKSOURCEVIEW_ENUMTYPES_H */\n" ^
--fprod "#include <gtksourceview/@filename@>\n" ^
--eprod "G_BEGIN_DECLS\n" ^
--eprod "#define GTK_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" ^
--eprod "GTK_SOURCE_ENUM_EXTERN\nGType @enum_name@_get_type (void);\n" ^
--eprod "G_END_DECLS\n\n" ^
gtksource.h ^
gtksourceautocleanups.h ^
gtksourcebuffer.h ^
gtksourcecompletion.h ^
gtksourcecompletioncontext.h ^
gtksourcecompletioninfo.h ^
gtksourcecompletionitem.h ^
gtksourcecompletionproposal.h ^
gtksourcecompletionprovider.h ^
gtksourceencoding.h ^
gtksourcefile.h ^
gtksourcefileloader.h ^
gtksourcefilesaver.h ^
gtksourcegutter.h ^
gtksourcegutterrenderer.h ^
gtksourcegutterrendererpixbuf.h ^
gtksourcegutterrenderertext.h ^
gtksourceinit.h ^
gtksourcelanguage.h ^
gtksourcelanguagemanager.h ^
gtksourcemap.h ^
gtksourcemark.h ^
gtksourcemarkattributes.h ^
gtksourceprintcompositor.h ^
gtksourceregion.h ^
gtksourcesearchcontext.h ^
gtksourcesearchsettings.h ^
gtksourcespacedrawer.h ^
gtksourcestyle.h ^
gtksourcestylescheme.h ^
gtksourcestyleschemechooser.h ^
gtksourcestyleschemechooserbutton.h ^
gtksourcestyleschemechooserwidget.h ^
gtksourcestyleschememanager.h ^
gtksourcetag.h ^
gtksourcetypes.h ^
gtksourceundomanager.h ^
gtksourceutils.h ^
gtksourceview.h ^
&1> gtksource-enumtypes.h


call perl -p -i.tmp -e "s/GTK_TYPE_SOURCE_/GTK_SOURCE_TYPE_/g" gtksource-enumtypes.h
del gtksource-enumtypes.h.tmp
