#!/bin/sh

# script starts here

#gtkversion=`gtk-config --version | cut -d. -f1,2`
#if [ "$gtkversion" = "1.0" ]
#then
#devel_flag=
#else
#fi

devel_flag=-DGTK_DEVEL

cproto $devel_flag -I/usr/X11R6/include -I. -I../include -I.. -I/usr/local/gtk/gtk/include -I/usr/local/gtk/gtk/include/gtk -I/usr/local/gtk/gtk/include/gdk -I/usr/local/gtk/gtk/lib/glib/include *.c > new_proto

#cproto $devel_flag -I/usr/X11R6/include -I. -I../include -I.. -I$HOME/newgtk/include -I$HOME/newgtk/include/gtk -I$HOME/newgtk/include/gdk -I$HOME/newgtk//lib/glib/include *.c > new_proto


#if [ "$gtkversion" = "1.0" ]
#then
#        cp -f prototype1.0.h prototype.bak
#        mv -f new_proto prototype1.0.h
#else
# for gtk+ 1.2.x
#fi

#       cp -f prototype1.2.h prototype.bak

        mv -f new_proto ../include/prototype.h

