OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Thomas Lotterer
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-tools Date: 02-Feb-2005 22:01:01
Branch: HEAD Handle: 2005020221005600
Modified files:
openpkg-tools/cmd bf-mk.pl
Log:
beautify screen(1) usage for worker
Summary:
Revision Changes Path
1.11 +18 -4 openpkg-tools/cmd/bf-mk.pl
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-tools/cmd/bf-mk.pl
============================================================================
$ cvs diff -u -r1.10 -r1.11 bf-mk.pl
--- openpkg-tools/cmd/bf-mk.pl 2 Feb 2005 11:46:40 -0000 1.10
+++ openpkg-tools/cmd/bf-mk.pl 2 Feb 2005 21:00:56 -0000 1.11
@@ -637,19 +637,33 @@
{
%{driver.shtool} echo -e "%B++ [EMAIL PROTECTED]:%{shared.prefix}:
create screens%b"
instances=`cd %{shared.prefix}/src && echo *-*-*`
- screenrc="%{shared.prefix}/tmp/master/screenrc"
- ( echo "vbell off"
+ screenrc="%{shared.prefix}/.screenrc"
+ ( echo "##"
+ echo "## ~/.screenrc"
+ echo "##"
+ echo ""
+ echo "escape ^Aa"
+ echo "startup_message off"
+ echo "vbell off"
+ echo "defmonitor off"
+ echo "msgminwait 1"
+ echo "msgwait 1"
+ echo "defscrollback 10000"
+ echo "hardstatus alwayslastline \" OpenPKG build farm | %t |
%=%Y-%m-%d %c \""
+ ) >$screenrc
+ masterscreenrc="%{shared.prefix}/tmp/master/screenrc"
+ ( cat <$screenrc
echo "screen -t \"$HOST [MASTER]\" %{driver.sh}"
for inst in $instances; do
eval `echo "$inst" | sed -e
's/^\([^-][^-]*\)-\([^-][^-]*\)-\([^-][^-]*\)$/host="\1"; arch="\2"; os="\3";/'`
echo "screen -t \"$host-$arch-$os\" %{master.ssh} -A -t -x $host
%{driver.sh}"
done
echo "select 0"
- ) >$screenrc
+ ) >$masterscreenrc
eval `%{master.sshagent} -s 2>/dev/null`
%{master.sshadd} -D </dev/null 2>/dev/null
%{master.sshadd} </dev/null || exit 1
- cd %{shared.prefix} && exec %{master.screen} -S openpkg-buildfarm -c
$screenrc
+ cd %{shared.prefix} && exec %{master.screen} -S openpkg-buildfarm -c
$masterscreenrc
}
usage ()
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]