2335
|
1 #!/bin/sh |
|
2 |
|
3 cat << \EOF |
|
4 // DO NOT EDIT! Generated automatically by mkbuiltins. |
|
5 |
|
6 #ifdef HAVE_CONFIG_H |
|
7 #include "config.h" |
|
8 #endif |
|
9 |
|
10 #include "builtins.h" |
|
11 #include "mappers.h" |
|
12 #include "oct-obj.h" |
|
13 #include "variables.h" |
|
14 |
2373
|
15 EOF |
|
16 |
|
17 for file in "$@"; do |
|
18 fcn=`echo $file | sed -e 's/\.df//' -e 's/-/_/g'` |
|
19 echo "static void" |
|
20 echo "install_${fcn}_fcns (void)" |
|
21 echo "{" |
|
22 cat $file |
|
23 echo "}" |
|
24 done |
|
25 |
|
26 cat << \EOF |
2335
|
27 static void |
|
28 install_builtin_functions (void) |
|
29 { |
|
30 EOF |
|
31 |
2373
|
32 for file in "$@"; do |
|
33 fcn=`echo $file | sed -e 's/\.df//' -e 's/-/_/g'` |
|
34 echo " install_${fcn}_fcns ();" |
|
35 done |
2335
|
36 |
|
37 cat << \EOF |
|
38 } |
|
39 |
|
40 void |
|
41 install_builtins (void) |
|
42 { |
|
43 install_builtin_variables (); |
|
44 install_mapper_functions (); |
|
45 install_builtin_functions (); |
|
46 } |
|
47 EOF |
|
48 |
|
49 exit 0 |