diff options
| author | Paul Buetow <paul@buetow.org> | 2010-11-21 16:22:46 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2010-11-21 16:22:46 +0000 |
| commit | dee37a84ae65ba8bd1e0dab6132955bbc195fa57 (patch) | |
| tree | 4397f736b9161f50cd0b00cdcfd2b0acc7c1af7e /src/mods/configure | |
| parent | 93ce2024a62325cbae5f2f6fd2155a4ef89cee63 (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 + |
