summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2005-02-21 14:41:41 +0000
committerFrederic Peters <fpeters@entrouvert.com>2005-02-21 14:41:41 +0000
commit4cbdba491a17891304675251da28eeeb1399b820 (patch)
treed730f7d29354f293ea070d03aa2ace2766dabee5 /python
parent1276043cd294df9776e6421e39a73dcba35bc7a3 (diff)
downloadlasso-4cbdba491a17891304675251da28eeeb1399b820.tar.gz
lasso-4cbdba491a17891304675251da28eeeb1399b820.tar.xz
lasso-4cbdba491a17891304675251da28eeeb1399b820.zip
more hateful Makefile.am to work with both swig 1.3.22 and 1.3.24; perhaps.
Diffstat (limited to 'python')
-rw-r--r--python/Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/Makefile.am b/python/Makefile.am
index f0f55dd4..603ed067 100644
--- a/python/Makefile.am
+++ b/python/Makefile.am
@@ -29,7 +29,8 @@ lasso_wrap.c lasso.py: $(top_srcdir)/swig/Lasso.i $(top_srcdir)/swig/Lasso-wsf.i
sed -e 's/\/\* if (val) \*val = PyObject_IsTrue(obj); return 1; \*\//int res = 0;/' \
< lasso_wrap.c.bak > lasso_wrap.c
cp lasso_wrap.c lasso_wrap.c.bak
- sed -e 's/if (obj == Py_True) /int res = 0; if (obj == Py_True) /' \
+ grep -q "int res =" lasso_wrap.c || \
+ sed -e 's/if (obj == Py_True) /int res = 0; if (obj == Py_True) /' \
< lasso_wrap.c.bak > lasso_wrap.c