Stephan Bergmann wrote:
I must confess I am too dumb to use dmake. Trying to create a fix for
<http://www.openoffice.org/issues/show_bug.cgi?id=87923>, I changed
solenv/inc/tg_ext.mk:1.85 l. 267--270 to
.IF "$(OS)"=="MACOSX"
$(PERL) $(SOLARENV)$/bin$/macosx-change-install-names.pl extshl \
$(EXTRPATH) \
$(shell ls $(foreach,j,$(OUT2LIB) $(LB)$/$(j:f)) | grep -v '\.a$$')
.ENDIF
What dmake sends to the shell needs to be
ls ... | grep -v '\.a$'
However, dmake complains about the above:
dmake: Executing shell macro: ls $(foreach,j,$(OUT2LIB) $(LB)$/$(j:f)) |
grep -v '\.a$$'
dmake: Error code 1, while making 'Shell escape'
The problem was that grep returned with exit code 1 (as nothing
matched), so the fix is to use
(grep -v '\.a$$' || test $$? = 1)
instead. Had the dmake error output said 'Exit code 1' instead of
'Error code 1', I might have understood what it wanted to tell me...
Anyway, thanks to Ause,
-Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]