~ubuntu-branches/ubuntu/hardy/pennmush/hardy

« back to all changes in this revision

Viewing changes to game/restart

  • Committer: Bazaar Package Importer
  • Author(s): Ervin Hearn III
  • Date: 2007-10-14 22:26:42 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20071014222642-3vt0pg0vxdiuxq5z
Tags: 1.8.2p7-1
* New upstream release
* Latest upstream release fixes possible DoS vulnerabilities in
  pennmush (Closes: #436249)
* Added missing build target to debian/rules (Closes: #395786)
* Corrected FTBFS on GNU/kFreeBSD due to timestamp skew
  (Closes: #403711)
* Applied patch to correct control file to make package binNMU safe
  (Closes: #435951)

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
# Time zone stuff
24
24
# If you want your MUSH to run in a different timezone than the one
25
 
# you're in, you need to identify the target time zone file in 
 
25
# you're in, you need to identify the target time zone file in
26
26
# /usr/share/zoneinfo or /usr/lib/zoneinfo. Then uncomment the next
27
27
# two lines and set TZ to the desired timezone file, as shown, with
28
28
# an initial colon:
51
51
 
52
52
if [ ! -f "$CONF_FILE" ]; then
53
53
  echo "CONF_FILE doesn't exist. It's: $CONF_FILE"
54
 
  echo "Create $CONF_FILE from $GAMEDIR/mushcnf.dst"
 
54
  echo "Create $CONF_FILE from $GAMEDIR/mushcnf.dst and run 'make update'"
55
55
  exit 1
56
56
fi
57
57
 
60
60
if [ ! -e netmush ]; then
61
61
  echo "I don't see $GAMEDIR/netmush. Did you remember to make install?"
62
62
  exit 1
63
 
fi 
 
63
fi
64
64
 
65
65
#
66
66
# Read the cnf file and set some variables.
67
67
#
68
 
INDB=`egrep "^input_database" $CONF_FILE | sed "s/.*[   ][      ]*.*\/\(.*\)/\1/"`
69
 
OUTDB=`egrep "^output_database" $CONF_FILE | sed "s/.*[         ][      ]*.*\/\(.*\)/\1/"`
70
 
PANICDB=`egrep "^crash_database" $CONF_FILE | sed "s/.*[        ][      ]*.*\/\(.*\)/\1/"`
71
 
PANICDIR=`egrep "^crash_database" $CONF_FILE | sed "s/.*[       ][      ]*\(.*\)\/.*/\1/"`
 
68
INDB=`egrep "^input_database" $CONF_FILE | sed "s/.*[   ][      ]*.*\/\(.*\)/\1/" | sed 's/\r$//'`
 
69
OUTDB=`egrep "^output_database" $CONF_FILE | sed "s/.*[         ][      ]*.*\/\(.*\)/\1/" | sed 's/\r$//'`
 
70
PANICDB=`egrep "^crash_database" $CONF_FILE | sed "s/.*[        ][      ]*.*\/\(.*\)/\1/" | sed 's/\r$//'`
 
71
PANICDIR=`egrep "^crash_database" $CONF_FILE | sed "s/.*[       ][      ]*\(.*\)\/.*/\1/" | sed 's/\r$//'`
72
72
COMPRESSOR="cat"
73
73
SUFFIX=""
74
74
 
76
76
egrep -s "^compress_program[    ]*[A-Za-z0-9]" $CONF_FILE
77
77
nocompress=$?
78
78
if [ "$nocompress" -eq 0 ]; then
79
 
    COMPRESSOR=`egrep "^compress_program" $CONF_FILE | sed "s/[^        ]*[     ]*\(.*\)/\1/"`
80
 
    SUFFIX=`egrep "^compress_suffix" $CONF_FILE | sed "s/[^     ]*[     ]*\(.*\)/\1/"`
 
79
    COMPRESSOR=`egrep "^compress_program" $CONF_FILE | sed "s/[^        ]*[     ]*\(.*\)/\1/" | sed 's/\r$//'`
 
80
    SUFFIX=`egrep "^compress_suffix" $CONF_FILE | sed "s/[^     ]*[     ]*\(.*\)/\1/" | sed 's/\r$//'`
81
81
fi
82
 
  
 
82
 
83
83
 
84
84
#-- start up everything
85
85
 
111
111
   fi
112
112
fi
113
113
 
114
 
rm -f log/*.log
 
114
# Copy the last set of log files to save/
 
115
mv -f log/*.log save/
115
116
 
116
117
if [ -r "data/$OUTDB$SUFFIX" ]; then
117
118
   rm -f save/$INDB$SUFFIX.old
137
138
fi
138
139
 
139
140
DATEMSK="${GAMEDIR}/getdate.template"
140
 
export DATEMSK
141
141
 
142
142
LC_ALL=$LANG LANG=$LANG ./netmush $GAMEDIR/$CONF_FILE &