I have just recently installed RH 5.2 on my computer at home and
when I try to run script files that work on my computer at work (RH 4.2)
I get error messages.
For example, the when I run the following script (I have only inclded a
portion of it for brevity) I get an error message that does not like the
then and endif right near the beginning.
#!/bin/csh -f
###
### LRI C Shell initiatization
###
### ALL LRI SOFTWARE PEOPLE SHOULD SOURCE THIS!!!
###
###
### If you get sick of seeing warning messages, just do a
### "set lri_quiet" before you source this script and it'll shut up.
if ($?did_lri_cshrc_v1) then
echo Already sourced this LRI init file, skipping
exit 0
endif
set did_lri_cshrc_v1
if (! $?lri_quiet) set be_verbose
### Set the main project directory; most of the time this will be in AFS
### On nav1, the standalone LRI_ROOT is /home/nomad. Fill in defaults for
### other systems as appropriate.
set roots = (/afs/cs/project/lri-7 /home/nomad)
Now it works perfectly fine at work. I am running the tcsh shell in
both places.
I also get problems when trying to run gmake files, which again work on
RH 4.2 but not 5.2. This one is even more strange since when I get to
the line ifndef LRI_ROOT it always seems to be true, even when I put
a line LRI_ROOT:=/home/sjm right before it.
If anyone has any suggestions as to what could be wrong or what I
can do to try and narrow the probelem down please let me know. I feel
that it is probably a setup problem since I have just recently installed
RH 5.2 on my computer (note it was a fresh install and not an upgrade).
Thanks.
Stewart