diff options
| author | Paul Buetow <paul@buetow.org> | 2008-05-15 23:29:40 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-05-15 23:29:40 +0000 |
| commit | d891a923bc507f28caa69f625079755d1a2083e7 (patch) | |
| tree | 03ae20f0ecd1590629ec1e720026ccf34ddaac3f /src/mods/configure | |
moved stuff the trunk
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..b90a55a --- /dev/null +++ b/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 + |
