From: Andre Noll Date: Thu, 5 Jun 2008 08:20:15 +0000 (+0200) Subject: Fix target osl_errors.h on MacOS. X-Git-Tag: v0.1.0~84 X-Git-Url: http://git.tuebingen.mpg.de/?p=osl.git;a=commitdiff_plain;h=8f61d7fc40d30a980d2a9f2206e854bb58c1d81f;hp=57b98a922b02c22d27ab69cbdcd3e2f028f4447e Fix target osl_errors.h on MacOS. The sed on Mac doesn't understand \n. --- 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' $< > $@