Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F8725710
setarch.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
492 B
Subscribers
None
setarch.sh
View Options
#!/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
Details
Attached
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)
Attached To
rAPPLGRIDSVN applgridsvn
Event Timeline
Log In to Comment