Debian Codegraph @

modules/make_initmod

raw symbols SCIP
1 #! /bin/sh
2
3 modnames=
4 for obj
5 do
6 bname=`basename $obj .c`
7 modnames="$modnames $bname"
8 done
9
10 echo "/* This file was generated automatically by 'make_initmod' */"
11 echo
12 echo '#include "avfs.h"'
13 echo
14
15 for name in $modnames; do
16 echo "int av_init_module_${name}(struct vmodule *module);"
17 done
18
19 echo
20 echo "extern void av_init_static_modules();"
21 echo
22 echo "void av_init_static_modules()"
23 echo "{"
24
25 for name in $modnames; do
26 echo " av_init_module_${name}(NULL);"
27 done
28
29 echo "}"
30 echo
31 echo "/* End of file */"