Page MenuHomeHEPForge

setarch.sh
No OneTemporary

setarch.sh

#!/bin/csh -f
# /usr/bin/sys
# exit
if ( `uname` == Darwin ) then
if ( `uname -p` == powerpc ) then
set arch = ppc
else
if ( `uname -p` == i386 ) then
set arch = x86
else
set arch = unknown
endif
endif
set version = `uname -r | sed 's/\..*/0/g' `
echo ${arch}_darwin_${version}
exit
else
if ( -e /usr/bin/fs ) then
fs sysname | awk '{print $4}' | sed "s/'//g"
else
echo `uname -p`-`uname -s`-`uname -r`
endif
endif

File Metadata

Mime Type
text/x-shellscript
Expires
Tue, Jan 21, 2:20 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4209167
Default Alt Text
setarch.sh (492 B)

Event Timeline