🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.mail.sendmail
1 messages
1 total messages Started by Robert Evans Fri, 29 Jul 1988 17:52
Re: UkSendmail1.5 dom,chn Makefiles fall over on Ultrix
#2752
Author: Robert Evans
Date: Fri, 29 Jul 1988 17:52
19 lines
1301 bytes
| 		-@if [ ! -s $@ ] ; \
| But the intention *is* to stop the make if the generated file is null ...
| are you saying the make stops when the file is non-null ? That is, when
| the test fails ? This is really nasty ! 
| To abort  when the file is null, we need to invert the test.
Yes.

| I suggest the following fragment.
| 
|         @if [ -s $@ ] ; \
|                 then :; \
|                 else    echo "$@ null - Abort" ;\
|                         if [ -s $@.BCK ] ; then mv $@.BCK $@ ; fi;\
|                         exit 99 ; fi
That would have the desired effect but the make aborts as a side effect of the
test "[ -s $@ ]" being false rather than because of the exit! (Hard to believe
but I just tried it to see).

Robert
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads