blob: 2c7fc85e861294ae68ca1348e646e9b51b8b0931 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/sh
cat <<HERE
/* WARNING: Autogenerated file - see $0! */
#include "cairo-boilerplate-private.h"
void _cairo_boilerplate_register_all (void);
HERE
cat "$@" | sed '/^CAIRO_BOILERPLATE/!d; s/CAIRO_BOILERPLATE.*(\(.*\),.*/extern void _register_\1 (void);/'
cat <<HERE
void
_cairo_boilerplate_register_all (void)
{
HERE
cat "$@" | sed '/^CAIRO_BOILERPLATE/!d; s/CAIRO_BOILERPLATE.*(\(.*\),.*/ _register_\1 ();/'
echo "}"
|