projects
/
osl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
57b98a9
)
Fix target osl_errors.h on MacOS.
author
Andre Noll
<maan@systemlinux.org>
Thu, 5 Jun 2008 08:20:15 +0000
(10:20 +0200)
committer
Andre Noll
<maan@systemlinux.org>
Thu, 5 Jun 2008 08:20:15 +0000
(10:20 +0200)
The sed on Mac doesn't understand \n.
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 8da3d1d4a7d36b8009fbb092b512bd80cc227704..b5d4b169a4833bb4ad3470d1319f0d2e4836a081 100644
(file)
--- 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' $< > $@