OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Thomas Lotterer
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-tools Date: 28-Apr-2005 13:42:19
Branch: HEAD Handle: 2005042812421900
Modified files:
openpkg-tools/cmd bf-mk.pl
Log:
xterm understands same escape sequence for setting window title like
screen does
Summary:
Revision Changes Path
1.26 +3 -3 openpkg-tools/cmd/bf-mk.pl
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-tools/cmd/bf-mk.pl
============================================================================
$ cvs diff -u -r1.25 -r1.26 bf-mk.pl
--- openpkg-tools/cmd/bf-mk.pl 24 Mar 2005 11:21:11 -0000 1.25
+++ openpkg-tools/cmd/bf-mk.pl 28 Apr 2005 11:42:19 -0000 1.26
@@ -430,7 +430,7 @@
#main()
HOST=`%{driver.hostname} | %{driver.sed} -e 's;\..*$;;'`
-if [ ".$TERM" = .screen ]; then %{driver.shtool} echo -n "k$HOST
[MASTER]\\"; fi
+if [ ".$TERM" = .screen -o ".$TERM" = .xterm ]; then %{driver.shtool} echo
-n "k$HOST [MASTER]\\"; fi
exec %{master.bfmk} "$@"
EOT
@@ -662,7 +662,7 @@
ARCH=`%{slaves.rpm} --eval '%{l_host_arch}'`; [ ".$ARCH" = . ] && die "ARCH
detection failed"
OS=`%{slaves.rpm} --eval '%{l_host_os}'`; [ ".$OS" = . ] && die "OS
detection failed"
TAG=`%{slaves.rpm} --eval '%{l_tag}'`; [ ".$TAG" = . ] && die "TAG detection
failed"
-if [ ".$TERM" = .screen ]; then %{driver.shtool} echo -n
"k$HOST-$ARCH-$OS\\"; fi
+if [ ".$TERM" = .screen -o ".$TERM" = .xterm ]; then %{driver.shtool} echo
-n "k$HOST-$ARCH-$OS\\"; fi
cmd=""
if [ ".$1" = ".-s" -o ".$1" = ".--support" ]; then shift; cmd="support"; fi
@@ -761,7 +761,7 @@
#main()
HOST=`%{driver.hostname} | %{driver.sed} -e 's;\..*$;;'`
-if [ ".$TERM" = .screen ]; then %{driver.shtool} echo -n "k$HOST
[WORKER]\\"; fi
+if [ ".$TERM" = .screen -o ".$TERM" = .xterm ]; then %{driver.shtool} echo
-n "k$HOST [WORKER]\\"; fi
cmd=""
if [ ".$1" = ".-a" -o ".$1" = ".--attach" ]; then shift; cmd="attach"; fi
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]