Roxen.git/
server/
start
Branch:
Tag:
Non-build tags
All tags
No tags
2002-10-30
2002-10-30 04:01:52 by Martin Nilsson <mani@lysator.liu.se>
d286b69b743b673a3001fd3d04bb8c248c547067 (
20
lines) (+
8
/-
12
)
[
Show
|
Annotate
]
Branch:
Aphoto_2.0_beta3
Updated stale dump files heuristics.
Rev: server/start:1.204
1:
#!/bin/sh #
-
# $Id: start,v 1.
203
2002/10/
24
00
:
29
:
41
nilsson Exp $
+
# $Id: start,v 1.
204
2002/10/
30
04
:
01
:
52
nilsson Exp $
### If --silent-start is given as the first argument, ### nothing will be printed to stdout by the script.
79:
./bin/mkdir -p $VARDIR/ || exit 1 fi
-
-
pcdir="$VARDIR/`roxen_version`/precompiled/`uname -m | tr ' ' '_' `.`uname -r`"
-
old_roxen_defines="$pcdir/old_roxen_defines"
-
./bin/mkdir -p "$pcdir" || exit 1
-
chmod 1777 "$pcdir"
-
+
# Default verbosity level. verbose=1
767:
PIKEVERSION="`\"$pike\" --version 2>&1|head -1`" LS="`ls -lL \"$pike\" 2>/dev/null`"
-
LS="$LS
`find
pike_modules -ls 2>/dev/null`"
-
LS="$LS
`find
server_core -ls 2>/dev/null`"
+
LS="$LS
`cd
pike_modules
&& find .
-ls 2>/dev/null`"
+
LS="$LS
`cd
server_core
&& find .
-ls 2>/dev/null`"
+
LS="$LS `cd data/includes && find . -ls 2>/dev/null`"
-
VERSION_DATA="$PIKEVERSION $DEFINES $LS"
+
VERSION_DATA="$PIKEVERSION $DEFINES $LS
`uname -m` `uname -r`
"
if [ "$program" = "server_core/loader.pike" ] ; then
-
if [ "`cat \"
$old
_
roxen_defines\
" 2>/dev/null`" != "$VERSION_DATA" ] ; then
+
if [ "`cat \"
$VARDIR/server
_
dependencies\
" 2>/dev/null`" != "$VERSION_DATA" ] ; then
remove_old_dot_o_files "defines or pike version changed" fi
-
echo "$VERSION_DATA" > "
$old
_
roxen_defines
"
+
echo "$VERSION_DATA" > "
$VARDIR/server
_
dependencies
"
fi if [ -z "$once" ] ; then