chiark
/
gitweb
/
~ian
/
ian-dotfiles.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dover RIP
[ian-dotfiles.git]
/
config
diff --git
a/config
b/config
index d9d49e651058ab534de54114c0cc2148219bfe81..b150190edbaf73f5a9d6f58a2a4343d0a1dc033d 100644
(file)
--- a/
config
+++ b/
config
@@
-1,17
+1,30
@@
@@-
@@-
-chomp($hostname= `uname -n`); $? and die 'uname $?';
-($hostname)=(gethostbyname $hostname) or die "hostname $hostname ?";
+chomp($nodename= `uname -n`); $? and die 'uname $?';
+($hostname)=(gethostbyname $nodename) or die "hostname $nodename ?";
+$nodename =~ s/\..*//;
-chomp($s= `uname`); $? and die 'platform $?';
-if ($s =~ m/^Linux$/) {
- chomp($_= `uname -m`); $? and die 'platform $?';
+$xbindir= '/usr/bin/X11';
+
+chomp($uname= `uname`); $? and die "platform $?";
+if ($uname =~ m/^Linux$/) {
+ chomp($_= `uname -m`); $? and die "platform $?";
if (m/^i\d86/) {
$platform= 'linux-i386';
} else {
if (m/^i\d86/) {
$platform= 'linux-i386';
} else {
- die
'$_ ?'
;
+ die
"$_ ?"
;
}
}
+} elsif ($uname =~ m/^SunOS$/) {
+ chomp($_= `uname -r`); $? and die "platform $?";
+ m/^\d+\.\d+/ or die "$_ ?";
+ $platform= "SunOS$&";
+ $xbindir= '/usr/openwin/bin';
+} else {
+ die "$uname ?";
}
}
-$ncipher= $hostname =~ m/\.
ncipher\.com$/
? 'cam' :
- $hostname =~ m/\.
ncipherusa\.com$
/ ? 'bos' :
+$ncipher= $hostname =~ m/\.
(ncipher\.com$)/
? 'cam' :
+ $hostname =~ m/\.
(ncipherusa\.com$)
/ ? 'bos' :
0;
0;
+
+%ncipherdom= ('cam' => 'ncipher.com',
+ 'bos' => 'ncipherusa.com');