<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems-tools (2011-02-21)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ccj</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-02-22 Chris Johns <chrisj@rtems.org>
* specbuilder/sb-versions, specbuilder/specbuilder/version.py:
New. Print a suitable version message for automatic documentation
updating from the spec files in CVS.
* specbuilder/specbuilder/build.py: Add xz support. Add a function
to return the name of a package.
* specbuilder/specbuilder/crossgcc.py: Use the build name in the
tmp path.
* specbuilder/specbuilder/darwin.py: Add xz support.
* specbuilder/specbuilder/defaults.py: Add xz support. Add Windows
and Linux support.
* specbuilder/specbuilder/setup.py: Reference the correct shell
opts. Use the shell setup in the version probe command. Fix the
version check. Add autotools to the list of spec files to
install.
* specbuilder/specbuilder/spec.py: Add changelog and configure
tests. Manage sub-packages better.
* specbuilder/specbuilder/version.py,
specbuilder/specbuilder/windows.py: New.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-tools/ChangeLog.diff?r1=text&tr1=1.7&r2=text&tr2=1.8&diff_format=h">M</a></td><td width='1%'>1.8</td><td width='100%'>ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-tools/specbuilder/sb-versions?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">specbuilder/sb-versions</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-tools/specbuilder/specbuilder/build.py.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>specbuilder/specbuilder/build.py</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-tools/specbuilder/specbuilder/crossgcc.py.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>specbuilder/specbuilder/crossgcc.py</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-tools/specbuilder/specbuilder/darwin.py.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>specbuilder/specbuilder/darwin.py</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-tools/specbuilder/specbuilder/defaults.py.diff?r1=text&tr1=1.6&r2=text&tr2=1.7&diff_format=h">M</a></td><td width='1%'>1.7</td><td width='100%'>specbuilder/specbuilder/defaults.py</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-tools/specbuilder/specbuilder/setup.py.diff?r1=text&tr1=1.5&r2=text&tr2=1.6&diff_format=h">M</a></td><td width='1%'>1.6</td><td width='100%'>specbuilder/specbuilder/setup.py</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-tools/specbuilder/specbuilder/spec.py.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>specbuilder/specbuilder/spec.py</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-tools/specbuilder/specbuilder/version.py?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">specbuilder/specbuilder/version.py</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-tools/specbuilder/specbuilder/windows.py?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">specbuilder/specbuilder/windows.py</font></td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems-tools/ChangeLog:1.7 rtems-tools/ChangeLog:1.8
--- rtems-tools/ChangeLog:1.7 Mon Aug 30 19:58:45 2010
+++ rtems-tools/ChangeLog Mon Feb 21 21:46:44 2011
</font><font color='#997700'>@@ -1,3 +1,31 @@
</font><font color='#000088'>+2011-02-22 Chris Johns <chrisj@rtems.org>
+
+ * specbuilder/sb-versions, specbuilder/specbuilder/version.py:
+ New. Print a suitable version message for automatic documentation
+ updating from the spec files in CVS.
+
+ * specbuilder/specbuilder/build.py: Add xz support. Add a function
+ to return the name of a package.
+<span style="background-color: #FF0000"> </span>
+ * specbuilder/specbuilder/crossgcc.py: Use the build name in the
+ tmp path.
+<span style="background-color: #FF0000"> </span>
+ * specbuilder/specbuilder/darwin.py: Add xz support.
+<span style="background-color: #FF0000"> </span>
+ * specbuilder/specbuilder/defaults.py: Add xz support. Add Windows
+ and Linux support.
+<span style="background-color: #FF0000"> </span>
+ * specbuilder/specbuilder/setup.py: Reference the correct shell
+ opts. Use the shell setup in the version probe command. Fix the
+ version check. Add autotools to the list of spec files to
+ install.
+<span style="background-color: #FF0000"> </span>
+ * specbuilder/specbuilder/spec.py: Add changelog and configure
+ tests. Manage sub-packages better.
+<span style="background-color: #FF0000"> </span>
+ * specbuilder/specbuilder/version.py,
+ specbuilder/specbuilder/windows.py: New.
+
</font> 2010-08-31 Chris Johns <chrisj@rtems.org>
* specbuilder/specbuilder/linux.py: Add Linux support. Can be
<font color='#006600'>diff -u /dev/null rtems-tools/specbuilder/sb-versions:1.1
--- /dev/null Mon Feb 21 22:10:29 2011
+++ rtems-tools/specbuilder/sb-versions Mon Feb 21 21:46:44 2011
</font><font color='#997700'>@@ -0,0 +1,33 @@
</font><font color='#000088'>+#! /usr/bin/env python
+#
+# $Id$
+#
+# RTEMS Tools Project (http://www.rtems.org/)
+# Copyright 2010 Chris Johns (chrisj@rtems.org)
+# All rights reserved.
+#
+# This file is part of the RTEMS Tools package in 'rtems-tools'.
+#
+# RTEMS Tools is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# RTEMS Tools is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with RTEMS Tools. If not, see <http://www.gnu.org/licenses/>.
+#
+
+import sys, os
+base = os.path.dirname(sys.argv[0])
+sys.path.insert(0, base + '/specbuilder')
+try:
+ import version
+ version.run()
+except ImportError:
+ print >> sys.stderr, "Incorrect SpecBulder installation"
+ sys.exit(1)
</font>
<font color='#006600'>diff -u rtems-tools/specbuilder/specbuilder/build.py:1.2 rtems-tools/specbuilder/specbuilder/build.py:1.3
--- rtems-tools/specbuilder/specbuilder/build.py:1.2 Thu Aug 12 16:09:55 2010
+++ rtems-tools/specbuilder/specbuilder/build.py Mon Feb 21 21:46:44 2011
</font><font color='#997700'>@@ -190,6 +190,8 @@
</font> source['compressed'] = '%{__bzip2} -dc'
elif esl[-1:][0] == 'bz2':
source['compressed'] = '%{__zip} -u'
<font color='#000088'>+ elif esl[-1:][0] == 'xz':
+ source['compressed'] = '%{__xz} -dc'
</font> source['script'] = ''
return source
<font color='#997700'>@@ -389,6 +391,11 @@
</font> if not self.opts.no_clean():
self.cleanup()
<font color='#000088'>+ def name(self):
+ packages = self.spec.packages()
+ package = packages['main']
+ return package.name() + '-' + package.version()
+
</font> def run(args):
try:
opts, _defaults = defaults.load(args)
<font color='#006600'>diff -u rtems-tools/specbuilder/specbuilder/crossgcc.py:1.1 rtems-tools/specbuilder/specbuilder/crossgcc.py:1.2
--- rtems-tools/specbuilder/specbuilder/crossgcc.py:1.1 Sun Aug 8 20:29:43 2010
+++ rtems-tools/specbuilder/specbuilder/crossgcc.py Mon Feb 21 21:46:44 2011
</font><font color='#997700'>@@ -72,8 +72,8 @@
</font> raise error.general('coping tree: ' + what + ': ' + str(err))
def first_package(self, _build):
<font color='#880000'>- path = os.path.join(_build.spec.abspath('%{_tmppath}'),
- _build.spec.expand('crossgcc-%(%{__id_u} -n)'))
</font><font color='#000088'>+ what = _build.spec.expand('crossgcc-%(%{__id_u} -n)-' + _build.name())
+ path = os.path.join(_build.spec.abspath('%{_tmppath}'), what)
</font> _build.rmdir(path)
_build.mkdir(path)
prefix = os.path.join(_build.spec.expand('%{_prefix}'), 'bin')
<font color='#006600'>diff -u rtems-tools/specbuilder/specbuilder/darwin.py:1.2 rtems-tools/specbuilder/specbuilder/darwin.py:1.3
--- rtems-tools/specbuilder/specbuilder/darwin.py:1.2 Thu Aug 12 16:09:55 2010
+++ rtems-tools/specbuilder/specbuilder/darwin.py Mon Feb 21 21:46:44 2011
</font><font color='#997700'>@@ -51,7 +51,8 @@
</font> '_usr': '/opt/local',
'_var': '/opt/local/var',
'optflags': '-O2 -fasynchronous-unwind-tables',
<font color='#880000'>- '_smp_mflags': smp_mflags
</font><font color='#000088'>+ '_smp_mflags': smp_mflags,
+ '__xz': '/usr/local/bin/xz',
</font> }
return defines
<font color='#006600'>diff -u rtems-tools/specbuilder/specbuilder/defaults.py:1.6 rtems-tools/specbuilder/specbuilder/defaults.py:1.7
--- rtems-tools/specbuilder/specbuilder/defaults.py:1.6 Mon Aug 30 19:58:45 2010
+++ rtems-tools/specbuilder/specbuilder/defaults.py Mon Feb 21 21:46:44 2011
</font><font color='#997700'>@@ -135,6 +135,7 @@
</font> '__tar': '/usr/bin/tar',
'__tar_extract': '%{__tar} -xvvf',
'__unzip': '/usr/bin/unzip',
<font color='#000088'>+'__xz': '/usr/bin/xz',
</font> '_datadir': '%{_prefix}/share',
'_defaultdocdir': '%{_prefix}/share/doc',
'_exeext': '',
<font color='#997700'>@@ -415,13 +416,17 @@
</font> """
d = defaults
overrides = None
<font color='#880000'>- uname = os.uname()
- if uname[0] == 'Darwin':
- import darwin
- overrides = darwin.load()
- elif uname[0] == 'Linux':
- import linux<span style="background-color: #FF0000"> </span>
- overrides = linux.load()
</font><font color='#000088'>+ if os.name == 'nt':
+ import windows
+ overrides = windows.load()
+ else:
+ uname = os.uname()
+ if uname[0] == 'Darwin':
+ import darwin
+ overrides = darwin.load()
+ elif uname[0] == 'Linux':
+ import linux<span style="background-color: #FF0000"> </span>
+ overrides = linux.load()
</font> if overrides is None:
raise error.general('no hosts defaults found; please add')
for k in overrides:
<font color='#997700'>@@ -451,3 +456,5 @@
</font> sys.exit(1)
sys.exit(0)
<font color='#000088'>+
+
</font>
<font color='#006600'>diff -u rtems-tools/specbuilder/specbuilder/setup.py:1.5 rtems-tools/specbuilder/specbuilder/setup.py:1.6
--- rtems-tools/specbuilder/specbuilder/setup.py:1.5 Thu Aug 12 23:40:44 2010
+++ rtems-tools/specbuilder/specbuilder/setup.py Mon Feb 21 21:46:44 2011
</font><font color='#997700'>@@ -88,7 +88,8 @@
</font>
def run(self, command, shell_opts = '', cwd = None):
e = execute.capture_execution(log = log.default, dump = self.opts.quiet())
<font color='#880000'>- cmd = self.opts.expand('%{__setup_shell} -ex ' + shell_opts + ' ' + command, self.defaults)
</font><font color='#000088'>+ cmd = self.opts.expand('%{___setup_shell} -ex ' + \
+ shell_opts + ' ' + command, self.defaults)
</font> self._output('run: ' + cmd)
exit_code, proc, output = e.shell(cmd, cwd = cwd)
if exit_code != 0:
<font color='#997700'>@@ -96,19 +97,22 @@
</font>
def check_version(self, cmd, macro):
vcmd = cmd + ' --version'
<font color='#000088'>+ vcmd = self.opts.expand('%{___setup_shell} -e ' + vcmd, self.defaults)<span style="background-color: #FF0000"> </span>
</font> e = execute.capture_execution()
exit_code, proc, output = e.shell(vcmd)
if exit_code != 0 and len(output) != 0:
raise error.general('shell cmd failed: ' + vcmd)
<font color='#880000'>- version = output.split('\n')[0].split(' ')
</font><font color='#000088'>+ version = output.split('\n')[0].split(' ')[-1:][0]
</font> need = self.opts.expand(macro, self.defaults)
if version < need:
<font color='#880000'>- _notice(self.opts, 'warning: ' + cmd + ' version is invalid, need ' + need + ' or higher')
</font><font color='#000088'>+ _notice(self.opts, 'warning: ' + cmd + \
+ ' version is invalid, need ' + need + ' or higher, found ' + version)
</font> return False
return True
def get_specs(self, path):
<font color='#880000'>- return self._get_file_list(path, 'rtems', 'spec')
</font><font color='#000088'>+ return self._get_file_list(path, 'autotools', 'spec') + \
+ self._get_file_list(path, 'rtems', 'spec')
</font>
def get_patches(self, path):
return self._get_file_list(path, 'patches', 'diff')
<font color='#997700'>@@ -127,7 +131,7 @@
</font> dst = os.path.join(path, d)
self.mkdir(dst)
except os.error, oerr:
<font color='#880000'>- if oerr[0] != errno.EEXIST:
</font><font color='#000088'>+ if oerr[0] != errno.EEXIST and oerr[0] != 183:
</font> raise error.general('OS error: ' + str(oerr))
if d == 'RPMLIB':
files = []
<font color='#997700'>@@ -141,7 +145,7 @@
</font> crossrpms = os.path.join(rtemssrc, 'contrib', 'crossrpms')
if not os.path.isdir(crossrpms):
raise error.general('no crossrpms directory found under: ' + crossrpms)
<font color='#880000'>- if 'rebuild' in self.opts.opts:
</font><font color='#000088'>+ if self.opts.rebuild():
</font> if self.check_version('autoconf', '%{__setup_autoconf}'):
self.run('../../bootstrap -c', '-c', crossrpms)
self.run('../../bootstrap', '-c', crossrpms)
<font color='#997700'>@@ -173,3 +177,5 @@
</font>
if __name__ == "__main__":
run()
<font color='#000088'>+
+
</font>
<font color='#006600'>diff -u rtems-tools/specbuilder/specbuilder/spec.py:1.2 rtems-tools/specbuilder/specbuilder/spec.py:1.3
--- rtems-tools/specbuilder/specbuilder/spec.py:1.2 Sun Aug 8 23:50:30 2010
+++ rtems-tools/specbuilder/specbuilder/spec.py Mon Feb 21 21:46:44 2011
</font><font color='#997700'>@@ -76,7 +76,11 @@
</font> infos = {}
for i in self.infos:
il = i.lower()
<font color='#880000'>- if il.startswith(label) and il[len(label):].isdigit():
</font><font color='#000088'>+ if il.startswith(label):
+ if il == label:
+ il = label + '0'
+ elif not il[len(label):].isdigit():
+ continue
</font> infos[il] = self.infos[i]
return infos
<font color='#997700'>@@ -146,6 +150,7 @@
</font> """Parse a spec file."""
_directive = [ '%description',
<font color='#000088'>+ '%changelog',
</font> '%prep',
'%build',
'%check',
<font color='#997700'>@@ -156,6 +161,7 @@
</font> '%files' ]
_ignore = [ re.compile('%setup'),
<font color='#000088'>+ re.compile('%configure'),
</font> re.compile('%doc'),
re.compile('%dir'),
re.compile('%ghost'),
<font color='#997700'>@@ -609,15 +615,7 @@
</font> if isvalid:
for d in self._directive:
if ls[0].strip() == d:
<font color='#880000'>- if len(ls) == 1:
- package = 'main'
- elif len(ls) == 2:
- package = ls[1].strip()
- else:
- if ls[1].strip() != '-n':
- self._warning("unknown directive option: '" + ls[1] + "'")
- package = ls[2].strip()
- return ('directive', ls[0].strip(), package)
</font><font color='#000088'>+ return ('directive', ls[0].strip(), ls[1:])
</font> self._warning("unknown directive: '" + ls[0] + "'")
return ('data', [l])
else:
<font color='#997700'>@@ -679,11 +677,23 @@
</font> break
self._warning("unexpected '" + r[1] + "'")
elif r[0] == 'directive':
<font color='#880000'>- self._set_package(r[2])
</font><font color='#000088'>+ new_data = []
+ if r[1] == '%description':
+ new_data = [' '.join(r[2])]
+ else:
+ if len(r[2]) == 0:
+ _package = 'main'
+ elif len(r[2]) == 1:
+ _package = r[2][0]
+ else:
+ if r[2][0].strip() != '-n':
+ self._warning("unknown directive option: '" + ' '.join(r[2]) + "'")
+ _package = r[2][1].strip()
+ self._set_package(_package)
</font> if dir and dir != r[1]:
self._directive_extend(dir, data)
dir = r[1]
<font color='#880000'>- data = []
</font><font color='#000088'>+ data = new_data
</font> elif r[0] == 'data':
for l in r[1]:
l = self._expand(l)
<font color='#006600'>diff -u /dev/null rtems-tools/specbuilder/specbuilder/version.py:1.1
--- /dev/null Mon Feb 21 22:10:30 2011
+++ rtems-tools/specbuilder/specbuilder/version.py Mon Feb 21 21:46:44 2011
</font><font color='#997700'>@@ -0,0 +1,95 @@
</font><font color='#000088'>+#
+# $Id$
+#
+# RTEMS Tools Project (http://www.rtems.org/)
+# Copyright 2010 Chris Johns (chrisj@rtems.org)
+# All rights reserved.
+#
+# This file is part of the RTEMS Tools package in 'rtems-tools'.
+#
+# RTEMS Tools is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# RTEMS Tools is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with RTEMS Tools. If not, see <http://www.gnu.org/licenses/>.
+#
+
+#
+# Extract the status of the spec files found in the SPECS directory.
+# The status is the name, source and patches.
+#
+
+import os
+
+import defaults
+import error
+import spec
+
+class versions:
+ """Return the versions of packages given a spec file."""
+
+ def __init__(self, name, _defaults, opts):
+ self.opts = opts
+ self.spec = spec.file(name, _defaults = _defaults, opts = opts)
+
+ def __str__(self):
+
+ def str_package(package):
+ sources = package.sources()
+ patches = package.patches()
+ version = package.version()
+ release = package.release()
+ buildarch = package.buildarch()
+ s = '\nNAME="' + package.name() + '"'
+ if buildarch:
+ s += '\nARCH="' + buildarch + '"'
+ if version:
+ s += '\nVERSION="' + version + '"'
+ if release:
+ s += '\nRELEASE="' + release + '"'
+ if len(sources):
+ s += '\nSOURCES=%d' % (len(sources))
+ c = 1
+ for i in sources:
+ s += '\nSOURCE%d="' % (c) + sources[i][0] + '"'
+ c += 1
+ s += '\nPATCHES=%d' % (len(patches))
+ c = 1
+ for i in patches:
+ s += '\nPATCH%d="' % (c) + patches[i][0] + '"'
+ c += 1
+ return s
+
+ packages = self.spec.packages()
+ s = 'SPEC=' + os.path.basename(self.spec.name) + \
+ str_package(packages['main'])
+ for p in packages:
+ if p != 'main':
+ s += str_package(packages[p])
+ return s + '\n'
+
+def run():
+ import sys
+ try:
+ opts, _defaults = defaults.load(sys.argv)
+ for spec_file in opts.spec_files():
+ s = versions(spec_file, _defaults = _defaults, opts = opts)
+ print s
+ del s
+ except error.general, gerr:
+ print gerr
+ sys.exit(1)
+ except error.internal, ierr:
+ print ierr
+ sys.exit(1)
+ sys.exit(0)
+
+if __name__ == "__main__":
+ run()
</font>
<font color='#006600'>diff -u /dev/null rtems-tools/specbuilder/specbuilder/windows.py:1.1
--- /dev/null Mon Feb 21 22:10:30 2011
+++ rtems-tools/specbuilder/specbuilder/windows.py Mon Feb 21 21:46:44 2011
</font><font color='#997700'>@@ -0,0 +1,67 @@
</font><font color='#000088'>+#
+# $Id$
+#
+# RTEMS Tools Project (http://www.rtems.org/)
+# Copyright 2010 Chris Johns (chrisj@rtems.org)
+# All rights reserved.
+#
+# This file is part of the RTEMS Tools package in 'rtems-tools'.
+#
+# RTEMS Tools is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# RTEMS Tools is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with RTEMS Tools. If not, see <http://www.gnu.org/licenses/>.
+#
+
+#
+# Windows specific support and overrides.
+#
+
+import pprint
+import os
+
+import execute
+
+def load():
+ uname = 'win32'
+ if os.environ.has_key('NUMBER_OF_PROCESSORS'):
+ ncpus = int(os.environ['NUMBER_OF_PROCESSORS'])
+ else:
+ ncpus = 0
+ if ncpus > 1:
+ smp_mflags = '-j' + str(ncpus)
+ else:
+ smp_mflags = ''
+ if os.environ.has_key('HOSTTYPE'):
+ hosttype = os.environ['HOSTTYPE']
+ else:
+ hosttype = 'i686'
+ system = 'mingw32'
+ defines = {<span style="background-color: #FF0000"> </span>
+ '_os': 'win32',
+ '_host': hosttype + '-pc-' + system,
+ '_host_vendor': 'microsoft',
+ '_host_os': 'win32',
+ '_host_cpu': hosttype,
+ '_host_alias': '%{nil}',
+ '_host_arch': hosttype,
+ '_usr': '/opt/local',
+ '_var': '/opt/local/var',
+ 'optflags': '-O2 -fasynchronous-unwind-tables',
+ '_smp_mflags': smp_mflags,
+ '__sh': 'sh',
+ '_buildshell': '%{__sh}',
+ '___setup_shell': '%{__sh}'
+ }
+ return defines
+
+if __name__ == '__main__':
+ pprint.pprint(load())
</font></pre>
<p> </p>
<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>