diff options
| author | Paul Buetow <paul@buetow.org> | 2009-01-27 23:25:11 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2009-01-27 23:25:11 +0000 |
| commit | 19f9940dc968afae01b54377ee23ec59069c9646 (patch) | |
| tree | f3aeb664f44aec07de640bce0326ec1b5e478c51 /0.8/src/mods/configure | |
| parent | 1c8047e99b6a7199e447bb5a70438837cc5f7890 (diff) | |
Diffstat (limited to '0.8/src/mods/configure')
| -rwxr-xr-x | 0.8/src/mods/configure | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/0.8/src/mods/configure b/0.8/src/mods/configure new file mode 100755 index 0000000..b90a55a --- /dev/null +++ b/0.8/src/mods/configure @@ -0,0 +1,26 @@ +#!/bin/sh + +if ! test -f ../Makefile; then + if test $1 != "fromtop"; then + echo "===> You need to run ./configure of the top level source dir first" + exit 1 + else + exit 0 + fi +fi + +cxx=`sed -n '/^CXX=/ { s///; p; q; }' ../Makefile` +cxxflags=`sed -n '/^CXXFLAGS=/ { s///; p; q; }' ../Makefile` + +for dir in commands html +do + echo "===> Creating $dir module Makefiles" + cd $dir + sed -n "s/=@CXXFLAGS@/=$cxxflags/; s/=@CXX@/=$cxx/; s/@CATEGORY@/$dir/g; w Makefile" ../Makefile.mods.in + for i in *.cpp + do + echo "../../../mods/$dir/./`echo $i | sed s/.cpp/.so/`: $i" >> Makefile + done + cd .. +done + |
