cookutils rev 488
cooker: Use $pidfile and $wokrev variables.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Jun 12 10:22:36 2012 +0000 (2012-06-12) |
parents | 3fbfcf812669 |
children | c49e9bbe6de0 |
files | cooker |
line diff
1.1 --- a/cooker Mon Jun 11 16:48:16 2012 +0000 1.2 +++ b/cooker Tue Jun 12 10:22:36 2012 +0000 1.3 @@ -388,7 +388,7 @@ 1.4 [ "$1" ] && usage 1.5 cooklist=$CACHE/commits 1.6 if [ -f "$pidfile" ]; then 1.7 - pid=$(cat /var/run/cooker.pid) 1.8 + pid=$(cat $pidfile) 1.9 if [ -s /proc/$pid/status ]; then 1.10 gettext -e "\nStill cooking latest commits with pid:" 1.11 echo -e " $pid\n" && exit 0 1.12 @@ -420,7 +420,7 @@ 1.13 new=$(hg head --template '{rev}\n') 1.14 # Store last rev to be used by CGI so it doesn't need to call hg head 1.15 # on each load. 1.16 - echo "$new" > $CACHE/wokrev 1.17 + echo "$new" > $wokrev 1.18 1.19 # Sync build wok with rsync so we don't take care about removing old 1.20 # files as before.