#!/bin/sh
-set -x
-make -C autotitle
-make -C autotitle install INSTALLDIR=$HOME/personal/@@$platform@@/bin
+set -ex
+
+for f in autotitle misc
+do
+ cd $f
+ make
+ make install INSTALLDIR=$HOME/personal/@@$platform@@/bin
+ cd ..
+done
for x in 3 2 1
do
sz=80x55
- y=$[35*$x+100+$pixels_y]
+ y=$(( 35*$x+100+$pixels_y ))
xb=$(( (($pixels_x-503)*(3-$x))/2 ))
xterm-CT "chiark ssh #$x" -geometry $sz+$xb+$y \
-e ssh chiark.greenend.org.uk -l ijackson &
echo -n :
- xterm-CT "chiark ssh ian #$x" -geometry $sz+$(( $pixels_x+$xb ))+$y \
+ xterm-CT "chiark ssh ian #$x" -geometry $sz+$(( $pixels_x + $xb ))+$y \
-e ssh chiark.greenend.org.uk -l ian &
echo -n :
done
cd
eval `cd $HOME && .configs/configure`
-emacs -f make-session -geometry 80x60+$(( $pixels_x*3-486 ))+0 &
+emacs -f make-session -geometry 80x60+$(( $pixels_x * 3 - 486 ))+0 &
# if [ "x$chost" = x ]
# then
keycode 66 = Control_L
add Lock = Caps_Lock
add Control = Control_L
+
+clear mod4
join #chiark
}
/load private/ircpass
-/alias fastness-id
+/alias fastness-id {
exec -msg Fastness -name fastness-id-proc irc-fastness-id
}
"Emacs restart" !".configs/startemacs"
"Emacs left" !"emacs -geometry 79x40+0+35 &"
"" f.nop
- "IRC chiark" !"xterm -geometry 80x80+240+95 -e irc Diziet localhost &"
+ "IRC Diziet" !"xterm -geometry 80x70+240-0 -T 'IRC Diziet' -e irc Diziet localhost &"
+ "IRC iwj" !"xterm -geometry 80x70+340-0 -T 'IRC iwj' -e irc iwj cam.irc.devel.ncipher.com &"
"" f.nop
"Trn" !"xterm -geometry 80x45+240+95 -e trn &"
"Archie" !"xarchie &"
titlebase="$1"
shift
touch "$HOME/.counters/l.$DISPLAY"
-newcount=`with-lock-wait "$HOME/.counters/l.$DISPLAY" perl -e '
+newcount=`with-lock-ex -w "$HOME/.counters/l.$DISPLAY" perl -e '
chdir($ARGV[2]) or die $!;
$tb= unpack("H*",$ARGV[1]); $found=0;
open(X,"v.$ARGV[0]\0") or die $!;
--- /dev/null
+with-lock-ex
--- /dev/null
+INSTALLDIR= $(HOME)/bin
+
+TARGETS= with-lock-ex
+
+CPPFLAGS= $(OPTIONS)
+CFLAGS= $(OPTIMISE)
+OPTIMISE= -O2
+OPTIONS=
+
+default: $(TARGETS)
+
+install:
+ set -e; for f in $(TARGETS); do \
+ rm -f $(INSTALLDIR)/$$f; \
+ ln $$f $(INSTALLDIR)/$$f; \
+ done
.configs/xtools +x
personal/scripts/bin/remoteshell +x
personal/scripts/bin/xloadt +x
+personal/scripts/bin/xterm-CT +x
personal/@@$platform@@/bin/ /
junk/ /
.counters/ 2770
private/ 2770
-bitmap/root -> bitmap/fischer
+bitmap/root -> fischer
.
defined($rl= readlink $home.$link) or die $!;
} else {
die unless $!==&ENOENT;
- $rl= '';
+ $rl= undef;
}
if ($rl ne $targ) {
would($link, "symlink $targ <-");
if ($action) {
+ unlink $home.$link if defined $rl;
symlink $targ,$home.$link or die $!;
}
}