/[Frey]/branches/zimbardo/bin/dev.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /branches/zimbardo/bin/dev.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/bin/dev.sh revision 532 by dpavlin, Wed Nov 26 07:57:12 2008 UTC branches/zimbardo/bin/dev.sh revision 1187 by dpavlin, Mon Sep 28 19:00:38 2009 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh -x
2    
3  server=./bin/continuity-server.pl  # This is my homage to Erlang - self restarting perl :-)
4    #
5    # it enabled to use die and confess when needed without
6    # having to worry about development flow
7    
8  dir=var/log  server=./bin/server-mojo.pl
9  test -d $dir || mkdir -v $dir || exit  
10    pid=`cat var/dev.pid`
11    echo "## $pid"
12    if [ ! -z "$pid" ] ; then
13            echo "# kill $pid"
14            kill $pid
15            killall server-mojo.pl
16    fi
17    
18    echo $$ > var/dev.pid
19    
20    export FREY_SWITCH_SCREEN=1
21    export FREY_DEV=1
22    export FREY_COUCH=1
23    
24  while true ; do  while true ; do
25  FREY_NO_LOG=1 perl -c $server || exit  
26  test -f log && mv -v log $dir/dev.`ls $dir/dev* | wc -l`          FREY_NO_LOG=1 perl -c $server || exit
27  DISPLAY= FREY_RESTART=1 $server # 2>&1 | tee -a log | ccze -A          FREY_RESTART=1 $server || exit
28            FREY_SWITCH_SCREEN=0
29    
30  done  done
31    

Legend:
Removed from v.532  
changed lines
  Added in v.1187

  ViewVC Help
Powered by ViewVC 1.1.26