diff options
| author | admin (centauri.fritz.box) <puppet@mx.buetow.org> | 2014-06-30 23:29:37 +0200 |
|---|---|---|
| committer | admin (centauri.fritz.box) <puppet@mx.buetow.org> | 2014-06-30 23:29:37 +0200 |
| commit | 751eada68e49f9ffae9a0be743d88a3ce956883f (patch) | |
| tree | 153d0a87fbe67911da4fde73e327b272b437c156 /src/mods/configure | |
| parent | 002c8534bfe2c266959dd42c9c71c17182977d87 (diff) | |
| parent | dee37a84ae65ba8bd1e0dab6132955bbc195fa57 (diff) | |
Diffstat (limited to 'src/mods/configure')
| -rwxr-xr-x | src/mods/configure | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/mods/configure b/src/mods/configure new file mode 100755 index 0000000..839380b --- /dev/null +++ b/src/mods/configure @@ -0,0 +1,26 @@ +#! /bin/sh + +if ! test -f ../../g++.version +then + echo You need to run ./configure of the top level source dir first + exit 1 +fi + +echo Creating module Makefiles... +for dir in commands html +do + if test -d $dir + then + cd $dir && + srcs="SRCS=`ls *.cpp`" && + echo $srcs > Makefile + compiler=`tail -n 1 ../../../g++.version` + sed s/COMPILER/$compiler/ Makefile.in >> Makefile && + for i in *.cpp + do + echo "../../../mods/$dir/`echo $i | sed s/.cpp/.so/`: $i" >> Makefile + done + cd .. + fi +done + |
