diff options
Diffstat (limited to '')
-rwxr-xr-x | sca-cpp/trunk/modules/server/cpp-conf | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/sca-cpp/trunk/modules/server/cpp-conf b/sca-cpp/trunk/modules/server/cpp-conf index 086bb49d38..6b74f60ec5 100755 --- a/sca-cpp/trunk/modules/server/cpp-conf +++ b/sca-cpp/trunk/modules/server/cpp-conf @@ -18,13 +18,20 @@ # under the License. # Generate a C++ 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: cpp-conf $* # Support for C++ SCA components -LoadModule mod_tuscany_eval $here/libmod_tuscany_eval.so +LoadModule mod_tuscany_eval $here/libmod_tuscany_eval$libsuffix EOF |