Merge branch 'mingw11' into 'master'
[cairo.git] / boilerplate / make-cairo-boilerplate-constructors.sh
blob1503e99707eecb1d705f2e0af7d204a8c0fe0dd6
1 #! /bin/sh
3 # IMPORTANT: Keep in sync with make-cairo-boilerplate-constructors.py!
5 if test $# -eq 0; then
6 echo "$0: no input files." >&2
7 exit 0
8 fi
10 cat <<HERE
11 /* WARNING: Autogenerated file - see $0! */
13 #include "cairo-boilerplate-private.h"
15 void _cairo_boilerplate_register_all (void);
17 HERE
19 cat "$@" | sed '/^CAIRO_BOILERPLATE/!d; s/CAIRO_BOILERPLATE.*(\(.*\),.*/extern void _register_\1 (void);/'
21 cat <<HERE
23 void
24 _cairo_boilerplate_register_all (void)
26 HERE
28 cat "$@" | sed '/^CAIRO_BOILERPLATE/!d; s/CAIRO_BOILERPLATE.*(\(.*\),.*/ _register_\1 ();/'
30 echo "}"