help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: issue with TCSH and gmake


From: Asperheim, Eric
Subject: RE: issue with TCSH and gmake
Date: Mon, 11 Jun 2001 16:24:35 -0700

Paul,

It's just the syntax of the while command in c or tc shell:

while (expression)
        command(s)
end

and your suggestion, unfortunately, doesn't work. Plus, I really don't want
to switch to sh shell since our group uses c/tc shell, i.e. I'd rather stick
with the simple script.

So, does anyone have any idea how to do what I want in c/tc shell?

Thanks,

Eric

-----Original Message-----
From: Paul D. Smith [mailto:address@hidden
Sent: Monday, June 11, 2001 3:50 PM
To: Asperheim, Eric
Cc: 'address@hidden'
Subject: Re: issue with TCSH and gmake


%% "Asperheim, Eric" <address@hidden> writes:

  ae> Does anyone know of a way to do this inside gmake - eliminating
  ae> need for wait_for.tcsh script?

I know next to nothing about tcsh, but why doesn't something like this:

  foo:
        command to create $@
        while (! -e $@); sleep 5; end

work?  If you were using SHELL = sh instead of tcsh, this would be
trivial.

-- 
----------------------------------------------------------------------------
---
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.paulandlesley.org/gmake/
 "Please remain calm...I may be mad, but I am a professional." --Mad
Scientist

_______________________________________________
Help-make mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/help-make




reply via email to

[Prev in Thread] Current Thread [Next in Thread]