File: make_initmod

package info (click to toggle)
avfs 1.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,916 kB
  • sloc: ansic: 31,364; sh: 6,482; perl: 1,916; makefile: 351
file content (31 lines) | stat: -rwxr-xr-x 510 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#! /bin/sh

modnames=
for obj
do
  bname=`basename $obj .c`
  modnames="$modnames $bname"
done

echo "/* This file was generated automatically by 'make_initmod' */"
echo
echo '#include "avfs.h"'
echo

for name in $modnames; do
  echo "int av_init_module_${name}(struct vmodule *module);"
done

echo
echo "extern void av_init_static_modules();"
echo
echo "void av_init_static_modules()"
echo "{"

for name in $modnames; do
  echo "    av_init_module_${name}(NULL);"
done

echo "}"
echo
echo "/* End of file */"