From 8f61d7fc40d30a980d2a9f2206e854bb58c1d81f Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 5 Jun 2008 10:20:15 +0200 Subject: [PATCH] Fix target osl_errors.h on MacOS. The sed on Mac doesn't understand \n. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8da3d1d..b5d4b16 100644 --- a/Makefile +++ b/Makefile @@ -69,9 +69,9 @@ $(dso_filename): $(objects) osl_errors.h: errlist sed -e 's/\([A-Z_]*\) .*/ E_OSL_\1/' \ - -e '1s/^/enum osl_errors {\n/1' \ + -e '1s/^/enum osl_errors {/1' \ -e '$$!s/$$/,/g' \ - -e '$$s/$$/\n};/1' $< > $@ + -e '$$s/$$/};/1' $< > $@ errtab.h: errlist sed -e 's/^\([A-Z_]*\)\s*\(.*\)/_S(E_OSL_\1, \2)/g' $< > $@ -- 2.30.2