Problem with .sh file

Posted by omgzor on Ask Ubuntu See other posts from Ask Ubuntu or by omgzor
Published on 2012-02-11T04:56:33Z Indexed on 2012/04/12 5:41 UTC
Read the original article Hit count: 277

Filed under:

I don't have any experience writing .sh files. I want to run the pvm2raw utility of this app from the Volume Library.

I get the following error when running build.sh in Ubuntu 10.10.

enter image description here

build.sh is as follows: # make command set mmfile=V3Makefile set make="make -f $mmfile"

set rule=$1
if ($rule == "") set rule="all" // line 16

if ($rule == "deps") then
   if ($HOSTTYPE == "iris4d") $make MAKEDEPEND="CC -M" OPTS="-DHAVE_CONFIG_H -DVIEWER_HAVE_DCMTK" TARGET=IRIX depend
   if ($HOSTTYPE == "i386") $make MAKEDEPEND="c++ -M -I/usr/X11R6/include" OPTS="-DHAVE_CONFIG_H -DVIEWER_HAVE_DCMTK" TARGET=LINUX depend

What's wrong there?

Edit: I followed kniwor's advice and installed csh. Now I get the following error:

enter image description here

How can I solve this Undefined variable problem?

© Ask Ubuntu or respective owner

Related posts about shell-scripting