File: update

package info (click to toggle)
mathomatic 15.1.1-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,368 kB
  • ctags: 783
  • sloc: ansic: 17,612; makefile: 230; sh: 133; python: 96
file content (11 lines) | stat: -rwxr-xr-x 685 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
# Update the function prototypes in proto.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 the cproto utility by running the "./update" script. */' >>cproto.h
echo '/* This file is required to compile Mathomatic quietly with the -Wall compiler option. */' >>cproto.h
echo >>cproto.h
cproto -DUNIX -DREADLINE *.c >>cproto.h && mv cproto.h proto.h && echo proto.h recreated.