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: 11-Feb-2005 11:28:16
Branch: HEAD Handle: 2005021110281600
Modified files:
openpkg-tools/cmd bf-mk.pl
Log:
add bf alias for easy use of correct ssh(1); print information about
bf alias and location of config file; allow concurrent screen sessions
Summary:
Revision Changes Path
1.16 +8 -2 openpkg-tools/cmd/bf-mk.pl
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-tools/cmd/bf-mk.pl
============================================================================
$ cvs diff -u -r1.15 -r1.16 bf-mk.pl
--- openpkg-tools/cmd/bf-mk.pl 7 Feb 2005 15:42:54 -0000 1.15
+++ openpkg-tools/cmd/bf-mk.pl 11 Feb 2005 10:28:16 -0000 1.16
@@ -231,6 +231,7 @@
my $osspcfg = new OSSP::cfg::simple;
die "no config file specified" unless (defined $cfgfile);
+ $cfg->{"global"}->{"cfgfile"} = $cfgfile;
my $io = new IO::File "<$cfgfile";
die "cannot open \"$cfgfile\" for reading ($!)" if(not defined $io);
my $txt = ''; $txt .= $_ while (<$io>);
@@ -394,9 +395,14 @@
my ($cfg) = @_;
my $txt = <<'EOT';
. .bashrc
+alias bf=%{master.ssh}
echo " Welcome to the OpenPKG build farm %{shared.prefix}"
echo ""
-echo " recreate scripts and config based on %{master.host} configuration"
+echo " connect to build-farm on slave via ssh(1)"
+echo " $ bf <host>"
+echo ""
+echo " recreate scripts and config based on configuration"
+echo " located on host %{master.host}, file \"%{global.cfgfile}\""
echo " $ master"
echo " "
echo " run WORKER (attach to or create screens)"
@@ -651,7 +657,7 @@
cmd_attach ()
{
%{driver.shtool} echo -e "%B++ [EMAIL PROTECTED]:%{shared.prefix}:
attach to screen%b"
- cd %{shared.prefix} && exec %{master.screen} -r openpkg-buildfarm -p =
+ cd %{shared.prefix} && exec %{master.screen} -r openpkg-buildfarm -p = -x
}
cmd_create ()
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]