From 4cbdba491a17891304675251da28eeeb1399b820 Mon Sep 17 00:00:00 2001 From: Frederic Peters Date: Mon, 21 Feb 2005 14:41:41 +0000 Subject: more hateful Makefile.am to work with both swig 1.3.22 and 1.3.24; perhaps. --- python/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python') 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 -- cgit