Update of /cvsroot/monetdb/MonetDB5/src/tools
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17525
Modified Files:
monetdb
Log Message:
Emit a warning when using the monetdb script
Index: monetdb
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/tools/monetdb,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- monetdb 25 May 2007 08:23:19 -0000 1.41
+++ monetdb 25 May 2007 08:40:42 -0000 1.42
@@ -56,44 +56,42 @@
case $1 in
"--start" | "--stop" | "--status" )
ACTION=$1
- shift
;;
"--databases")
ACTION=$1
- shift
;;
"--dump")
ACTION=checkpoint
ASCII="--ascii=yes"
- shift
;;
"--checkpoint")
ACTION=$1
- shift
;;
"--recover")
ACTION=$1;
- shift
;;
"--log")
ACTION=$1
- shift
;;
"--help")
usage
exit 0
;;
esac
+shift
+
+# emit a warning :)
+echo " * warning: This script is experimental"
# massage the argument list to prepare for calling
ARGS=""
DBNAME=""
STARTUP=""
DELAY=""
-while [ $# -gt 0 ]
-do
+while [[ $# -gt 0 ]] ; do
case "$1" in
"--dump" )
+# interesting: --dump --dump seems to be a valid action
ASCII="--ascii=yes"
;;
"--ascii="* )
@@ -111,7 +109,7 @@
;;
"--dbinit="* )
tail="${1#--dbinit=}"
- STARTUP=/tmp/mserver5.startup$$
+ STARTUP=${TMPDIR:-/var/tmp}/mserver5.startup$$
echo $tail > $STARTUP
;;
* )
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins