File: update

package info (click to toggle)
mathomatic 16.0.5-5.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,192 kB
  • sloc: ansic: 22,029; makefile: 340; sh: 319; python: 96; awk: 39
file content (11 lines) | stat: -rwxr-xr-x 687 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# 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 code or
# whenever a function definition is changed.

cproto </dev/null >/dev/null || exit 1 # 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 -DDEBUG *.c >>cproto.h && mv cproto.h proto.h && echo proto.h recreated.