Revision 10, 0.5 kB
(checked in by broder, 16 years ago)
|
Created macathena-machtype port. Also, added ncurses as a dependency for moira
|
- Property svn:executable set to
*
|
Line | |
---|
1 |
#!/usr/bin/env python |
---|
2 |
|
---|
3 |
from commands import getoutput |
---|
4 |
|
---|
5 |
arch = getoutput('arch') |
---|
6 |
darwin_ver = int(getoutput('uname -r').split('.')[0]) * 10 |
---|
7 |
|
---|
8 |
ver_list = range(darwin_ver, 40, -10) |
---|
9 |
x86_list = ["x86_darwin_%d" % ver for ver in ver_list] |
---|
10 |
ppc_list = ["ppc_darwin_%d" % ver for ver in ver_list] |
---|
11 |
|
---|
12 |
if arch == 'i386': |
---|
13 |
versions = [item for items in zip(x86_list, ppc_list) for item in items] |
---|
14 |
else: |
---|
15 |
versions = ppc_list |
---|
16 |
|
---|
17 |
versions += ['share', 'common', 'any'] |
---|
18 |
|
---|
19 |
print 'ATHENA_SYS=%s ATHENA_SYS_COMPAT="%s"' % (versions[0], ':'.join(versions[1:])) |
---|