X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=config;h=6c6b6c69f1852436c88d33e58d2364c00c2d4d76;hb=41761774d497a788baf3ec0ad5cd90c4765b630c;hp=9014c2a694a1afd423d4647db8bd8d00b2723675;hpb=4fd494a89f036948677ae8ed3b4ea9ad1f1ad90f;p=ian-dotfiles.git 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$/;