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

[linrad] Re: Build trouble



Hi Chris,

> case "$kernver" in
> "Linux 2.2")
>  ...
>  ... ;;
> "Linux 2.4")
>  ...
>  ... ;;
> *)
>  echo "Unknown kernel $kernver";;
> esac
> 
> See http://www.tldp.org/LDP/abs/html/testbranch.html for the full 
> gory details.
This "programming language" is really difficult.....
I can not make this more elegant construct work.
By replacing "Linux 2.4" by a variable "$L24" that
has ben set like this L24="Linux 2.4" I can make
the switch work - but then the variables set inside
the switch are not replaced properly when the
configure script produces rusage.h from rusage.h.in :-(

I will stay with the multiple if statements, they seem 
to work without problems:-)

Thanks anyway, I now have a bookmark to where one can
read about bash scripting:-)

73

Leif


#############################################################
This message is sent to you because you are subscribed to
  the mailing list <linrad@xxxxxxxxxxxxxxxxxxxxx>.
To unsubscribe, E-mail to: <linrad-off@xxxxxxxxxxxxxxxxxxxxx>
To switch to the DIGEST mode, E-mail to <linrad-digest@xxxxxxxxxxxxxxxxxxxxx>
To switch to the INDEX mode, E-mail to <linrad-index@xxxxxxxxxxxxxxxxxxxxx>
Send administrative queries to  <linrad-request@xxxxxxxxxxxxxxxxxxxxx>

LINRADDARNIL