eqemu
annotate libs/libimago/configure @ 12:2656099aff12
added copyright notices and license
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 18 Jul 2014 07:04:21 +0300 |
parents | |
children |
rev | line source |
---|---|
nuclear@10 | 1 #!/bin/sh |
nuclear@10 | 2 |
nuclear@10 | 3 gen_module_init() |
nuclear@10 | 4 { |
nuclear@10 | 5 # collect all src/file_whatever.c files |
nuclear@10 | 6 modules=`ls src/file_*.c 2>/dev/null | sort | sed 's/src\/file_//' | sed 's/\.c//'` |
nuclear@10 | 7 |
nuclear@10 | 8 echo "/* this file is generated by $0, do not edit */" |
nuclear@10 | 9 for m in $modules; do |
nuclear@10 | 10 echo "int img_register_$m();" |
nuclear@10 | 11 done |
nuclear@10 | 12 |
nuclear@10 | 13 echo |
nuclear@10 | 14 echo 'void img_modules_init(void)' |
nuclear@10 | 15 echo '{' |
nuclear@10 | 16 |
nuclear@10 | 17 for m in $modules; do |
nuclear@10 | 18 echo " img_register_$m();" |
nuclear@10 | 19 done |
nuclear@10 | 20 |
nuclear@10 | 21 echo '}' |
nuclear@10 | 22 } |
nuclear@10 | 23 |
nuclear@10 | 24 gen_module_init >src/modules.c |
nuclear@10 | 25 |
nuclear@10 | 26 echo 'PREFIX = /usr/local' >Makefile |
nuclear@10 | 27 cat Makefile.in >>Makefile |