summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorRomain Chantereay <rchantereau@entrouvert.com>2005-02-17 11:42:44 +0000
committerRomain Chantereay <rchantereau@entrouvert.com>2005-02-17 11:42:44 +0000
commit38d7258b4fe3cbde01d00de68d08586e6a9b997a (patch)
tree86de7e322afbc2f84e8543d0439102f5d71be53d /python
parent356917b10030dfa26b91476c59af7587d4392cb8 (diff)
downloadlasso-38d7258b4fe3cbde01d00de68d08586e6a9b997a.tar.gz
lasso-38d7258b4fe3cbde01d00de68d08586e6a9b997a.tar.xz
lasso-38d7258b4fe3cbde01d00de68d08586e6a9b997a.zip
Escape the $ as begin of a variable name adding another '$'.
Now the '$$' pass '$' to sed and '$' is end of line and no more begin of variable name.
Diffstat (limited to 'python')
-rw-r--r--python/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/Makefile.am b/python/Makefile.am
index 31224209..09ea009e 100644
--- a/python/Makefile.am
+++ b/python/Makefile.am
@@ -23,7 +23,7 @@ lasso_wrap.c lasso.py: $(top_srcdir)/swig/Lasso.i $(top_srcdir)/swig/Lasso-wsf.i
sed -e 's/free(result)/g_free(result)/' \
< lasso_wrap.c.bak > lasso_wrap.c
cp lasso_wrap.c lasso_wrap.c.bak.1
- sed -e 's/^ int res = 0;$//' \
+ sed -e 's/^ int res = 0;$$//' \
< lasso_wrap.c.bak.1 > lasso_wrap.c
cp lasso_wrap.c lasso_wrap.c.bak.2
sed -e 's/\/\* if (val) \*val = PyObject_IsTrue(obj); return 1; \*\//int res = 0;/' \