diff options
Diffstat (limited to '')
-rwxr-xr-x | sca-cpp/trunk/modules/server/scheme-conf | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/sca-cpp/trunk/modules/server/scheme-conf b/sca-cpp/trunk/modules/server/scheme-conf index cd3c82b280..bc4074c8be 100755 --- a/sca-cpp/trunk/modules/server/scheme-conf +++ b/sca-cpp/trunk/modules/server/scheme-conf @@ -18,13 +18,20 @@ # under the License. # Generate a Scheme server conf -here=`readlink -f $0`; here=`dirname $here` +here=`echo "import os; print os.path.realpath('$0')" | python`; here=`dirname $here` mkdir -p $1 -root=`readlink -f $1` +root=`echo "import os; print os.path.realpath('$1')" | python` + +uname=`uname -s` +if [ $uname = "Darwin" ]; then + libsuffix=".dylib" +else + libsuffix=".so" +fi cat >>$root/conf/modules.conf <<EOF # Generated by: scheme-conf $* # Support for Scheme SCA components -LoadModule mod_tuscany_eval $here/libmod_tuscany_eval.so +LoadModule mod_tuscany_eval $here/libmod_tuscany_eval$libsuffix EOF |