Roxen.git/
server/
start
Branch:
Tag:
Non-build tags
All tags
No tags
1999-11-03
1999-11-03 20:19:32 by Henrik Grubbström (Grubba) <grubba@grubba.org>
0272d3f4e7bbd6b202de2c6f408b421b80b2823b (
36
lines) (+
21
/-
15
)
[
Show
|
Annotate
]
Branch:
5.2
Added support for the -w option.
Rev: server/start:1.80
1:
#!/bin/sh #
-
# $Id: start,v 1.
79
1999/
10
/
08
17:
20:
34
per
Exp $
+
# $Id: start,v 1.
80
1999/
11
/
03
20:
19:32
grubba
Exp $
pre="`echo \" $$ \" | sed -e 's/\(.........\)\(.*\)/\1/g'` :"
79:
DEFINES="$DEFINES $1" ;; -l*)
-
ARGS="
$DEFINES
$1"
+
ARGS="
$ARGS
$1"
;; # Used by the 'install' script --truss)
162:
once=1 shift ;;
-
-d*|-t*|-l*)
+
-d*|-t*|-l*
|-w*
)
# Argument passed along to Pike. ARGS="$ARGS $1" ;;
285:
.B-t<level>B.: Turn on more Pike tracing. This only works if Pike is compiled with debug.
+
.B-wB.: Turn on Pike warnings.
.BEnvironment variables:B.
397:
DEFINES="$DEFINES -DHPUX_KLUDGE" fi
+
+
case "x$debug" in
+
"x")
+
DEBUG="-DMODULE_DEBUG"
+
;;
+
"x-1")
+
DEBUG=""
+
;;
+
"x1")
+
DEBUG="-DDEBUG -DMODULE_DEBUG"
+
ARGS="$ARGS -w"
+
;;
+
esac
+
+
DEFINES="$DEBUG $DEFINES"
+
####### END PIKE OPTIONS
437:
# # Now do the stuff #
-
-
if [ -z "$debug" ] ; then
-
DEBUG="-DMODULE_DEBUG";
-
else
-
DEBUG="-DDEBUG -DMODULE_DEBUG"
-
fi
-
-
if [ "x$debug" = "x-1" ] ; then
-
DEBUG="";
-
else :; fi
-
-
DEFINES="$DEBUG $DEFINES"
+
PIKEVERSION=`$pike --version 2>&1`