X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=ian-dotfiles.git;a=blobdiff_plain;f=config;h=6c6b6c69f1852436c88d33e58d2364c00c2d4d76;hp=9014c2a694a1afd423d4647db8bd8d00b2723675;hb=12492429594166da9b3a01a7952480dc521598de;hpb=4fd494a89f036948677ae8ed3b4ea9ad1f1ad90f diff --git a/config b/config index 9014c2a..6c6b6c6 100644 --- a/config +++ b/config @@ -1,2 +1,16 @@ @@- -chomp($hostname= `uname -n`); $? and die; +chomp($hostname= `uname -n`); $? and die 'uname $?'; +($hostname)=(gethostbyname $hostname) or die "hostname $hostname ?"; + +chomp($s= `uname`); $? and die 'platform $?'; +if ($s =~ m/^Linux$/) { + chomp($_= `uname -m`); $? and die 'platform $?'; + if (m/^i\d86/) { + $platform= 'linux-i386'; + } else { + die '$_ ?'; + } +} + +$ncipher= $hostname =~ m/\.ncipher\.com$/ + || $hostname =~ m/\.ncipherusa\.com$/;