Martin Albrecht wrote: > On Thursday 16 July 2009, Dr. David Kirkby wrote: >> I need to create a patch which is only applied on the sun4v >> architecture. The way to test for that on Solaris is use use 'arch -k' >> >> On 't2' >> >> kir...@t2:[~] $ arch -k >> sun4v >> >> On my own Sun Blade 2000 >> >> drkir...@kestrel:[~] $ arch -k >> sun4u >> >> >> Is 'arch -k' supported on all platforms - linux, FreeBSD, OS X or >> anything else we want Sage to work on? > > Debian GNU/Linux: > > $ arch -k > arch: invalid option -- 'k'
No problem, I'll test for Solaris first - something like: if [ `uname` - "SunOS" ]; then if [ `arch -k` = "sun4v" ] ; then <do what I to do> fi fi I was going to ask on AIX and HP-UX groups too, just in case someone decided to port to one of those platform. But there is no point if its not even supported on some linux distros. --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---