1234567891011121314151617181920212223242526272829 |
- #!/bin/sh
- # Build external-modules.c.
- target="$1"
- shift
- (
- cat <<!
- !
- for i in "s48_initialize_external" "$@"; do
- cat <<!
- extern void $i(void);
- !
- done
- cat <<!
- void s48_initialize_external_modules (void) {
- !
- for i in "s48_initialize_external" "$@"; do
- cat <<!
- $i();
- !
- done
- cat <<!
- }
- !
- ) >"$target"
|