~ubuntu-branches/ubuntu/trusty/teeworlds/trusty-updates

« back to all changes in this revision

Viewing changes to debian/scripts/teeworlds

  • Committer: Bazaar Package Importer
  • Author(s): Gonéri Le Bouder
  • Date: 2009-04-12 02:32:37 UTC
  • mfrom: (3.2.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090412023237-ufmf1xn0rkjmx6f3
Tags: 0.5.1-2
* Fix the ouput of teeworlds-server --help with /bin/sh ->
  /bin/bash (Closes: #511600)
* Standard version 3.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
cd ${BASE_PATH}
38
38
 
39
39
if [ ${QUIET} -eq 1 ]; then
40
 
        exec ${BINARY} $* >/dev/null 2>&1
 
40
        ${BINARY} $* >/dev/null 2>&1 &
41
41
else
42
 
        exec ${BINARY} $*
43
 
fi
44
 
 
 
42
        ${BINARY} $* &
 
43
fi
 
44
TEEWORLDPID=$!
 
45
 
 
46
if [ ${QUIET} -ne 1 ]; then
 
47
        echo "starting a loop to prevent screensaver wake up (htp://bugs.debian.org/480902)"
 
48
fi
 
49
 
 
50
while [ -d "/proc/$TEEWORLDPID" ]; do
 
51
        sleep 10 
 
52
        xscreensaver-command -deactivate >&- 2>&-
 
53
        gnome-screensaver-command --poke >&- 2>&-
 
54
done
45
55
exit $?