[mdlug] I need a script Hero

Raymond McLaughlin driveray at ameritech.net
Tue Jan 30 21:24:35 EST 2007


Jeff Hanson wrote:
> In particular, I need someone to help me figure out what is wrong with
> this setup script for Heroes 3 by Loki Software.  I keep getting an
> error with Ubuntu Edgy:
> 
> sh setup.sh
> setup.sh: 9: function:  not found
> x86

> Syntax error:  "(" expected

I'm not sure if this is the problem, but I would change the following lines:
    > function DetectARCH {
    > function DetectLIBC {
    > function try_run
to:
    > function DetectARCH ()
      {
    > function DetectLIBC ()
      {
    > function try_run ()
respectively.

The script as you posted it worked on SuSE, but I think the '()' in the
function declaration is more correct. Moving the the bracket to th next
line is more a mater of style, but it's what is seem more commonly, and
consistent with the third function declaration.

I hope this helps
Raymond McLaughlin



More information about the mdlug mailing list