Update of /cvsroot/monetdb/clients
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12202/clients

Modified Files:
        RunMtest.in 
Log Message:

cleaned-up, simplified and "normalized" the RunMtest.in scripts
(Unix shell script version, only; Windows batch script version still to be 
done...)


Index: RunMtest.in
===================================================================
RCS file: /cvsroot/monetdb/clients/RunMtest.in,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- RunMtest.in 30 Aug 2007 12:35:33 -0000      1.2
+++ RunMtest.in 8 Sep 2007 10:02:30 -0000       1.3
@@ -16,31 +16,30 @@
 # Portions created by CWI are Copyright (C) 1997-2007 CWI.
 # All Rights Reserved.
 
[EMAIL PROTECTED]@
+pkg=monetdb-clients
+builddir=`pwd`
 # make sure srcdir contains absolute path name
-srcdir=`cd '@Xsrcdir@'; pwd`
+srcdir=`cd '@srcdir@'; pwd`
 uname=`uname`
 
-# enhance various paths to find our stuff
-for x in "${builddir}/conf/monetdb-clients-config" 
"${builddir}/src/java/scripts/mjclient" "${builddir}/src/python/mclient.py" ; do
+# make sure scripts are executable
+for x in "${builddir}/conf/${pkg}-config" 
"${builddir}/src/java/scripts/mjclient" "${builddir}/src/python/mclient.py"
+do
        if [ -s $x ] ; then
                chmod +x $x
        fi
 done
+
+# enhance various paths to find our stuff
 
PATH="${builddir}/conf:${builddir}/src/java/scripts:${builddir}/src/mapiclient:${builddir}/src/python:$PATH"
 export PATH
 
 # execute Mtest.py in the source directory
 cd "$srcdir"
 
-# check python version
-type -a @PYTHON@
[EMAIL PROTECTED]@ -V
-
-# execute the script
+# execute the script.
 # if no arguments, do a recursive test (Mtest.py -r), else pass on the
 # arguments.
-# if the environment variable MTEST_AT is set (value does not matter),
-# pass the --at flag to Mtest.py so that it uses the at command as a
-# watchdog.
-exec Mtest.py --TSTSRCBASE="${srcdir}" --TSTBLDBASE="${builddir}" 
--TSTTRGBASE="${builddir}" ${MTEST_AT+--at} "[EMAIL PROTECTED]"
+# if the environment variable MTEST_AT is set (value does not matter), pass
+# the --at flag to Mtest.py so that it uses the at command as a watchdog.
+exec Mtest.py --package=${pkg} --TSTTRGBASE="${builddir}" ${MTEST_AT+--at} 
"[EMAIL PROTECTED]"


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to