#!/bin/bash
# Update the function prototypes in cproto.h by using the cproto utility.
# Run this whenever a new C function is added to the Mathomatic source or
# whenever a function definition is changed.
cproto </dev/null >/dev/null || exit # Test for existence of cproto utility.
echo '/* Complete list of global C function prototypes for Mathomatic. */' >cproto.h
echo '/* This file was created with "cproto -DUNIX -DREADLINE *.c >cproto.h" */' >>cproto.h
echo '/* Copy this file to proto.h to compile Mathomatic with -Wall, if you wish. */' >>cproto.h
echo >>cproto.h
cproto -DUNIX -DREADLINE *.c >>cproto.h && echo cproto.h recreated
