From: Brian Gernhardt Date: Fri, 09 Apr 2010 14:41:47 GMT Subject: [PATCH] Makefile: Remove excess backslashes from sed Message-ID: <1270824107-26604-1-git-send-email-brian@gernhardtsoftware.com> The sed script that was intended to add lines altering the sys.path had extra backslashes in them. Instead resulting in import sys; import os; sys.path.insert( ... ) It output import sys; \ import os; \ sys.path.insert( ... ) Unfortunately this caused python (2.6.1 on OS X 10.6.3) to error SyntaxError: unexpected character after line continuation character Removing two of the backslashes solves this problem. Signed-off-by: Brian Gernhardt --- Makefile | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f0fe351..b9eb1ca 100644 --- a/Makefile +++ b/Makefile @@ -1632,8 +1632,8 @@ $(patsubst %.py,%,$(SCRIPT_PYTHON)): % : %.py sed -e '1{' \ -e ' s|#!.*python|#!$(PYTHON_PATH_SQ)|' \ -e '}' \ - -e 's|^import sys.*|&; \\\ - import os; \\\ + -e 's|^import sys.*|&; \ + import os; \ sys.path.insert(0, os.getenv("GITPYTHONLIB",\ "@@INSTLIBDIR@@"));|' \ -e 's|@@INSTLIBDIR@@|'"$$INSTLIBDIR"'|g' \ -- 1.7.1.rc0.243.g2ce66