summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
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