This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project gfxprim.git.
The branch, master has been updated via 03dc78a368cf8724cfaf79b6e149bdbe2d709205 (commit) from 97369ab9d2fc879e4d491f7f0813db4fa191b5e8 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/gfxprim.git/commit/03dc78a368cf8724cfaf79b6e149bdbe2d709...
commit 03dc78a368cf8724cfaf79b6e149bdbe2d709205 Author: Cyril Hrubis metan@ucw.cz Date: Sat Jan 14 20:07:11 2012 +0100
build: fix configure for older pythons.
diff --git a/configure b/configure index bb7c7cb..3f479be 100755 --- a/configure +++ b/configure @@ -10,7 +10,7 @@ from optparse import OptionParser def header_exists(cfg, filename): fpath = cfg['include_path'][0] + '/' + filename - sys.stderr.write("Checking for '{0}' ... ".format(fpath)) + sys.stderr.write("Checking for '%s' ... " % fpath) try: st = os.stat(fpath) @@ -23,7 +23,7 @@ def header_exists(cfg, filename): def c_try_compile(cfg, code, msg): sys.stderr.write(msg)
- ret = os.system("echo '{0}' | {1} -x c -o /dev/null - > /dev/null 2>&1".format(code, cfg["CC"][0])) + ret = os.system("echo '%s' | %s -x c -o /dev/null - > /dev/null 2>&1" % (code, cfg["CC"][0])) if ret: sys.stderr.write("Non") @@ -34,12 +34,12 @@ def c_try_compile(cfg, code, msg):
def c_compiler_exists(cfg): return c_try_compile(cfg, "int main(void) { return 0; }", - "Checking for working compiler ({0}) ... ".format(cfg["CC"][0])) + "Checking for working compiler (%s) ... " % cfg["CC"][0])
def python_module_installed(cfg, module): - sys.stderr.write("Checking for python module {0} ... ".format(module)) + sys.stderr.write("Checking for python module %s ... " % module)
- ret = os.system("echo 'import {0}' | {1} > /dev/null 2>&1".format(module, cfg['PYTHON_BIN'][0])) + ret = os.system("echo 'import %s' | %s > /dev/null 2>&1" % (module, cfg['PYTHON_BIN'][0]))
if ret: sys.stderr.write('Non') @@ -65,20 +65,20 @@ class libraries: sys.stderr.write("-------------------------n") for i in self.libraries: - sys.stderr.write("{0:10}".format(i[0])) + sys.stderr.write("%10s" % i[0])
if (self.results[i[0]]): sys.stderr.write(" : Enabledn") else: sys.stderr.write(" : Disabledn")
- sys.stderr.write(" - {0}nn".format(i[1])) + sys.stderr.write(" - %snn" % i[1]) # # Enable/Disable library # def set(self, name, val): if name not in map(lambda s: s[0], self.libraries): - sys.stderr.write("ERROR: Invalid library '{0}'n".format(name)) + sys.stderr.write("ERROR: Invalid library '%s'n" % name) exit(1) else: self.results[name] = val @@ -99,11 +99,11 @@ class libraries: # def write_config_h(self, f): for i in self.libraries: - f.write("/*n * {0}n */n".format(i[1])) + f.write("/*n * %sn */n" % i[1]) if self.results[i[0]]: - f.write("#define HAVE_{0}n".format(i[0].upper())) + f.write("#define HAVE_%sn" % i[0].upper()) else: - f.write("//#define HAVE_{0}n".format(i[0].upper())) + f.write("//#define HAVE_%sn" % i[0].upper()) f.write("n")
# @@ -112,7 +112,7 @@ class libraries: def write_config_mk(self, f): for i in self.libraries: if self.results[i[0]]: - f.write("# {0}nCFLAGS+={1}nLDFLAGS+={2}n".format(i[0], i[3], i[4])) + f.write("# %snCFLAGS+=%snLDFLAGS+=%sn" % (i[0], i[3], i[4]))
def basic_checks(cfg): sys.stderr.write("Basic checksn") @@ -137,7 +137,7 @@ def write_config_h(cfg, libs): def write_config_mk(cfg, libs): f = open('config.gen.mk', 'w') for i in cfg: - f.write("# {0}n{1}={2}n".format(cfg[i][1], i, cfg[i][0])) + f.write("# %sn%s=%sn" % (cfg[i][1], i, cfg[i][0])) libs.write_config_mk(f); f.close() sys.stderr.write("Config 'config.gen.mk' writtenn")
-----------------------------------------------------------------------
Summary of changes: configure | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.